File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
plugins/module_utils/podman Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -943,12 +943,12 @@ def diffparam_group_add(self):
943943 # Healthcheck is only defined in container config if a healthcheck
944944 # was configured; otherwise the config key isn't part of the config.
945945 def diffparam_healthcheck (self ):
946+ before = ''
946947 if 'healthcheck' in self .info ['config' ]:
947948 # the "test" key is a list of 2 items where the first one is
948949 # "CMD-SHELL" and the second one is the actual healthcheck command.
949- before = self .info ['config' ]['healthcheck' ]['test' ][1 ]
950- else :
951- before = ''
950+ if len (self .info ['config' ]['healthcheck' ]['test' ]) > 1 :
951+ before = self .info ['config' ]['healthcheck' ]['test' ][1 ]
952952 after = self .params ['healthcheck' ] or before
953953 return self ._diff_update_and_compare ('healthcheck' , before , after )
954954
You can’t perform that action at this time.
0 commit comments