mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Further syntax fix work on Python2.4
The `val if something else something-else` syntax does not work prior to 2.5.
This commit is contained in:
parent
9ad91d7369
commit
66a6231922
1 changed files with 4 additions and 1 deletions
|
@ -175,7 +175,10 @@ def main():
|
|||
(not installed and state == 'present'))
|
||||
|
||||
if changed:
|
||||
full_name = _get_full_name(name, version) if state == 'present' else name
|
||||
if state == 'present':
|
||||
full_name = _get_full_name(name, version)
|
||||
else:
|
||||
full_name = name
|
||||
|
||||
cmd = '%s %s %s' % (PIP, command_map[state], full_name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue