mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
98a14f8090
commit
20fdc43968
1 changed files with 2 additions and 0 deletions
|
@ -217,6 +217,8 @@ def _compare(actual, create_kwargs, defaults_from_image):
|
|||
actual_ports = sorted(actual_data)
|
||||
desired_ports = []
|
||||
for port_def in data:
|
||||
if isinstance(port_def, six.integer_types):
|
||||
port_def = str(port_def)
|
||||
if isinstance(port_def, tuple):
|
||||
desired_ports.append('{0}/{1}'.format(*port_def))
|
||||
elif '/' not in port_def:
|
||||
|
|
Loading…
Add table
Reference in a new issue