1
0
Fork 0
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:
Sergey 2020-10-20 16:54:33 +03:00 committed by GitHub
parent 297995540b
commit 2007d84132
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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):

View file

@ -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 \