Skip to content

Commit

Permalink
Correct offline cli arg support check (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 31, 2022
1 parent 298eec2 commit 5016f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansible_compat/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ def install_requirements(
"-v",
]
if offline:
if self.version_in_range(upper="2.13"):
if self.version_in_range(upper="2.14"):
_logger.warning(
"Offline mode ignored because it is not supported by ansible versions before 2.13."
"Offline mode ignored because it is not supported by ansible versions before 2.14."
)
else:
cmd.append("--offline")
Expand Down

0 comments on commit 5016f24

Please sign in to comment.