Skip to content

Commit

Permalink
Wrap first clause in brackets.
Browse files Browse the repository at this point in the history
In cleanup instance method to make the order clear.
  • Loading branch information
smarlowucf committed May 30, 2019
1 parent 4cc14c6 commit ef971a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipa/ipa_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def _cleanup_instance(self, status):
If tests pass and cleanup flag is none, or
cleanup flag is true, terminate instance.
"""
if status == 0 and self.cleanup is None or self.cleanup:
if (status == 0 and self.cleanup is None) or self.cleanup:
self.logger.info(
'Terminating instance %s' % self.running_instance_id
)
Expand Down

0 comments on commit ef971a6

Please sign in to comment.