Skip to content

Commit

Permalink
Change present state to be as created state
Browse files Browse the repository at this point in the history
For being more compliant with docker module.
See containers#257
  • Loading branch information
sshnaidm committed Jul 7, 2021
1 parent 06cc449 commit ffbb7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/podman/podman_container_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ def diffparam_no_hosts(self):
before = not bool(self.info['hostspath'])
# For newer verions of Podman
if 'resolvconfpath' in self.info:
before = not bool(self.info['resolvconfpath'])
before = bool(self.info['resolvconfpath'])
after = self.params['no_hosts']
if self.params['network'] == ['none']:
after = True
Expand Down Expand Up @@ -1616,7 +1616,7 @@ def make_absent(self):
def execute(self):
"""Execute the desired action according to map of actions & states."""
states_map = {
'present': self.make_started,
'present': self.make_created,
'started': self.make_started,
'absent': self.make_absent,
'stopped': self.make_stopped,
Expand Down

0 comments on commit ffbb7b2

Please sign in to comment.