Skip to content

Commit

Permalink
Fix for Current cloud name on ls-schedule.
Browse files Browse the repository at this point in the history
With the new changes introduced for default_cloud, we were missing
calling the reference for the cloud name and therefore printing
the representation of the object.

Change-Id: If6b54e1085c3c00ef05e3567c623f7f5bf3d8d77
  • Loading branch information
grafuls committed Jul 26, 2019
1 parent 5801319 commit 8a2e180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/quads-cli
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def main(_args):
logger.info("Current cloud: %s" % _current_cloud)
logger.info("Current schedule: %s" % _current_schedule[0].index)
else:
logger.info("Current cloud: %s" % _host.default_cloud)
logger.info("Current cloud: %s" % _host.default_cloud.name)
else:
logger.info("Current cloud: %s" % _host.default_cloud)
logger.info("Current cloud: %s" % _host.default_cloud.name)
if "date" in _kwargs:
_kwargs.pop("date")
_host_schedules = Schedule.objects(**_kwargs)
Expand Down

0 comments on commit 8a2e180

Please sign in to comment.