mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 03:52:05 +00:00
Fix wrong replacements. (#1139)
This commit is contained in:
parent
1902e0fdf2
commit
82b49c7cf2
@ -1,2 +1,2 @@
|
|||||||
bugfixes:
|
bugfixes:
|
||||||
- "Avoid usage of deprecated ``ansible.module_utils.six`` in all code that does not have to support Python 2 (https://github.com/ansible-collections/community.docker/pull/1137)."
|
- "Avoid usage of deprecated ``ansible.module_utils.six`` in all code that does not have to support Python 2 (https://github.com/ansible-collections/community.docker/pull/1137, https://github.com/ansible-collections/community.docker/pull/1139)."
|
||||||
|
|||||||
@ -248,7 +248,7 @@ class Connection(ConnectionBase):
|
|||||||
if self.get_option('extra_env'):
|
if self.get_option('extra_env'):
|
||||||
for k, v in self.get_option('extra_env').items():
|
for k, v in self.get_option('extra_env').items():
|
||||||
for val, what in ((k, 'Key'), (v, 'Value')):
|
for val, what in ((k, 'Key'), (v, 'Value')):
|
||||||
if not isinstance(val, (str, bytes)):
|
if not isinstance(val, str):
|
||||||
raise AnsibleConnectionFailure(
|
raise AnsibleConnectionFailure(
|
||||||
'Non-string {0} found for extra_env option. Ambiguous env options must be '
|
'Non-string {0} found for extra_env option. Ambiguous env options must be '
|
||||||
'wrapped in quotes to avoid them being interpreted. {1}: {2!r}'
|
'wrapped in quotes to avoid them being interpreted. {1}: {2!r}'
|
||||||
|
|||||||
@ -243,7 +243,7 @@ class Connection(ConnectionBase):
|
|||||||
data['Env'] = []
|
data['Env'] = []
|
||||||
for k, v in self.get_option('extra_env').items():
|
for k, v in self.get_option('extra_env').items():
|
||||||
for val, what in ((k, 'Key'), (v, 'Value')):
|
for val, what in ((k, 'Key'), (v, 'Value')):
|
||||||
if not isinstance(val, (str, bytes)):
|
if not isinstance(val, str):
|
||||||
raise AnsibleConnectionFailure(
|
raise AnsibleConnectionFailure(
|
||||||
'Non-string {0} found for extra_env option. Ambiguous env options must be '
|
'Non-string {0} found for extra_env option. Ambiguous env options must be '
|
||||||
'wrapped in quotes to avoid them being interpreted. {1}: {2!r}'
|
'wrapped in quotes to avoid them being interpreted. {1}: {2!r}'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user