Skip to content

Commit

Permalink
Merge pull request openstack-charmers#299 from coreycb/master
Browse files Browse the repository at this point in the history
Fix get_machines_for_applications for subordinates
  • Loading branch information
fnordahl authored May 28, 2020
2 parents 4865af1 + 24306b8 commit 0de2faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zaza/openstack/utilities/juju.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_machines_for_application(application, model_name=None):

# libjuju juju status no longer has units for subordinate charms
# Use the application it is subordinate-to to find machines
if status.get("units") is None and status.get("subordinate-to"):
if not status.get("units") and status.get("subordinate-to"):
status = get_application_status(status.get("subordinate-to")[0],
model_name=model_name)

Expand Down

0 comments on commit 0de2faf

Please sign in to comment.