Skip to content

Commit

Permalink
fixup! dockerd returns sometimes None or [] for ports.
Browse files Browse the repository at this point in the history
  • Loading branch information
ticosax committed Feb 25, 2016
1 parent bd89fa4 commit 48f6591
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions salt/states/dockerng.py
Expand Up @@ -190,6 +190,8 @@ def _image_get(path):
# port/protocol pairs (as found in the "actual" dict).
if actual_data is None:
actual_data = []
if data is None:
data = []
actual_ports = sorted(actual_data)
desired_ports = []
for port_def in data:
Expand Down

0 comments on commit 48f6591

Please sign in to comment.