Commit 037f74de authored by Zuul's avatar Zuul Committed by Gerrit Code Review

Merge "Align json indents"

parents 5cbecc18 34c711ea
......@@ -84,6 +84,7 @@ class CreateHost(command.CreateCommand):
class UpdateHost(command.UpdateCommand):
"""Update attributes of a host."""
resource = 'host'
json_indent = 4
allow_names = False
log = logging.getLogger(__name__ + '.UpdateHost')
......
......@@ -50,6 +50,7 @@ class ShowLease(command.ShowCommand):
class CreateLease(command.CreateCommand):
"""Create a lease."""
resource = 'lease'
json_indent = 4
log = logging.getLogger(__name__ + '.CreateLease')
default_start = datetime.datetime.utcnow()
default_end = default_start + datetime.timedelta(days=1)
......@@ -277,6 +278,7 @@ class CreateLease(command.CreateCommand):
class UpdateLease(command.UpdateCommand):
"""Update a lease."""
resource = 'lease'
json_indent = 4
log = logging.getLogger(__name__ + '.UpdateLease')
def get_parser(self, prog_name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment