mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Fix signals case for podman_container (#126)
In #113 we made a change to lowercase only keys, but signals in image info are upper case. Fix tests - stop signal should be word, not number. Related to #125.
This commit is contained in:
parent
297995540b
commit
2007d84132
2 changed files with 3 additions and 3 deletions
|
|
@ -1715,10 +1715,10 @@ class PodmanContainerDiff:
|
|||
}
|
||||
before = str(self.info['config']['stopsignal'])
|
||||
if not before.isdigit():
|
||||
before = signals[before]
|
||||
before = signals[before.lower()]
|
||||
after = str(self.params['stop_signal'])
|
||||
if not after.isdigit():
|
||||
after = signals[after]
|
||||
after = signals[after.lower()]
|
||||
return self._diff_update_and_compare('stop_signal', before, after)
|
||||
|
||||
def diffparam_tty(self):
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ EXPOSE 80
|
|||
EXPOSE 8080/tcp
|
||||
VOLUME ["/data", "/data2"]
|
||||
USER user
|
||||
STOPSIGNAL 9
|
||||
STOPSIGNAL SIGKILL
|
||||
|
||||
# problem with OS w/o systemd
|
||||
# HEALTHCHECK --interval=5m --timeout=3s \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue