mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-18 07:14:20 +01:00
Minor refactoring
This commit is contained in:
@@ -18,16 +18,6 @@ class InputHelper(object):
|
|||||||
|
|
||||||
return arg
|
return arg
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def expand_targets(targets, dont_expand_cidr):
|
|
||||||
if not dont_expand_cidr:
|
|
||||||
# expand CIDR from net addr
|
|
||||||
pass
|
|
||||||
# expand comma notation
|
|
||||||
|
|
||||||
# return list of unique hosts
|
|
||||||
return targets
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def process_targets(arguments):
|
def process_targets(arguments):
|
||||||
targets = set()
|
targets = set()
|
||||||
@@ -40,8 +30,13 @@ class InputHelper(object):
|
|||||||
targets.add(target.strip())
|
targets.add(target.strip())
|
||||||
|
|
||||||
# take list of targets and expand CIDR / comma notation
|
# take list of targets and expand CIDR / comma notation
|
||||||
targets = set(arguments.expand_targets(targets, arguments.nocidr))
|
if not arguments.nocidr:
|
||||||
|
# expand CIDR from net addr
|
||||||
|
pass
|
||||||
|
|
||||||
|
# expand comma notation
|
||||||
|
|
||||||
|
# return list of unique hosts
|
||||||
return targets
|
return targets
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user