This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
ExternalMirrors
/
ufw-formula
mirror of
https://github.com/saltstack-formulas/ufw-formula
Watch
1
Star
0
Fork
1
Code
Issues
0
Releases
12
Wiki
Activity
Browse Source
Return host if it's an ip ..
tags/v0.2.0
Mike Campbell
8 years ago
parent
7490f9b9a0
commit
e3cace7a49
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
+1
-1
_states/ufw.py
+ 1
- 1
_states/ufw.py
View File
@@ -22,7 +22,7 @@ def _changed(name, msg, **changes):
def _resolve(host):
# let's just see if it starts with a number or a colon, for simplicity
if re.match(r'^[0-9:]', host):
return
return
host
return socket.gethostbyname(host)
Write
Preview
Loading…
Cancel
Save