mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #31353 from ticosax/fix-when-port-are-integers
[dockerng] Fix when ports are integers
This commit is contained in:
commit
18bd78260d
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