Skip to content

Commit

Permalink
Fix error message construction in ansible_version_check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rmol committed Apr 23, 2020
1 parent d9184d5 commit f5554d2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ class CallbackModule(CallbackBase):
def __init__(self):
# The acceptable version range needs to be synchronized with
# requirements files.
viable_start = [2, 9, 6]
viable_start = [2, 9, 7]
viable_end = [2, 10, 0]
ansible_version = [int(v) for v in ansible.__version__.split('.')]
if not (viable_start <= ansible_version < viable_end):
print_red_bold(
"SecureDrop restriction: Ansible version must be at least {viable_start}.*"
"SecureDrop restriction: Ansible version must be at least {viable_start} "
"and less than {viable_end}."
.format(
viable_start='.'.join(viable_start),
viable_end='.'.join(viable_end),
viable_start='.'.join(str(v) for v in viable_start),
viable_end='.'.join(str(v) for v in viable_end),
)
)
sys.exit(1)

0 comments on commit f5554d2

Please sign in to comment.