Skip to content

Commit

Permalink
Unify ansible.run.delay in set/noset command (#647)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Oct 27, 2023
1 parent d7cb692 commit 5a16bb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions osism/commands/noset.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ def take_action(self, parsed_args):

arguments = [
"-e status=False",
"-l {host}",
f"-l {host}",
]

ansible.run.delay(
"generic",
"state-maintenance",
arguments,
publish=False,
locking=False,
)
4 changes: 1 addition & 3 deletions osism/commands/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ def take_action(self, parsed_args):

arguments = [
"-e status=True",
"-l {host}",
f"-l {host}",
]

ansible.run.delay(
"generic",
"state-maintenance",
arguments,
publish=False,
locking=False,
)

0 comments on commit 5a16bb6

Please sign in to comment.