Skip to content

Commit

Permalink
Move salt.utils.ipaddr to salt.ext.ipaddr
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Nov 19, 2014
1 parent ffbc38a commit 4c68c32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ License: MIT License
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Files: salt/utils/ipaddr.py
Files: salt/ext/ipaddr.py
Copyright: 2007 Google Inc.
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions salt/roster/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import socket

# Import salt libs
import salt.utils.ipaddr
import salt.ext.ipaddr


def targets(tgt, tgt_type='glob', **kwargs):
Expand Down Expand Up @@ -36,11 +36,11 @@ def targets(self):
addrs = ()
ret = {}
try:
salt.utils.ipaddr.IPAddress(self.tgt)
salt.ext.ipaddr.IPAddress(self.tgt)
addrs = [self.tgt]
except ValueError:
try:
addrs = salt.utils.ipaddr.IPNetwork(self.tgt).iterhosts()
addrs = salt.ext.ipaddr.IPNetwork(self.tgt).iterhosts()
except ValueError:
pass
for addr in addrs:
Expand Down

0 comments on commit 4c68c32

Please sign in to comment.