Do not use shortcut conditional operator which is not supported in Python 2.4.
This commit is contained in:
parent
2bef08705f
commit
7bd59c4b23
1 changed files with 4 additions and 2 deletions
|
@ -58,8 +58,10 @@ class UnimplementedStrategy(object):
|
|||
def unimplemented_error(self):
|
||||
platform = get_platform()
|
||||
distribution = get_distribution()
|
||||
msg_platform = '%s (%s)' % (platform, distribution) \
|
||||
if distribution is not None else platform
|
||||
if distribution is not None:
|
||||
msg_platform = '%s (%s)' % (platform, distribution)
|
||||
else:
|
||||
msg_platform = platform
|
||||
self.module.fail_json(
|
||||
msg='hostname module cannot be used on platform %s' % msg_platform)
|
||||
|
||||
|
|
Loading…
Reference in a new issue