1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Ensure the MAC address uses colons instead of hyphens for later comparison. Fixes #35463 (#35465)

This commit is contained in:
Matt Martz 2018-03-27 14:20:01 -05:00 committed by ansibot
parent 8ce2ee0ebb
commit 897c8df8d0

View file

@ -744,6 +744,10 @@ class TaskParameters(DockerBaseClass):
if network.get('links'):
network['links'] = self._parse_links(network['links'])
if self.mac_address:
# Ensure the MAC address uses colons instead of hyphens for later comparison
self.mac_address = self.mac_address.replace('-', ':')
if self.entrypoint:
# convert from list to str.
self.entrypoint = ' '.join([str(x) for x in self.entrypoint])