mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 03:02:58 +01:00
fix arg for so-firewall addhostgroup
This commit is contained in:
@@ -116,7 +116,7 @@ def addhostgroup(args):
|
|||||||
print('Missing host group name argument', file=sys.stderr)
|
print('Missing host group name argument', file=sys.stderr)
|
||||||
showUsage(args)
|
showUsage(args)
|
||||||
|
|
||||||
name = args[1]
|
name = args[0]
|
||||||
content = loadYaml(hostgroupsFilename)
|
content = loadYaml(hostgroupsFilename)
|
||||||
if name in content['firewall']['hostgroups']:
|
if name in content['firewall']['hostgroups']:
|
||||||
print('Already exists', file=sys.stderr)
|
print('Already exists', file=sys.stderr)
|
||||||
|
|||||||
Reference in New Issue
Block a user