Merge pull request #1591 from Security-Onion-Solutions/issue/1590

fix arg for so-firewall addhostgroup
This commit is contained in:
Josh Patterson
2020-10-21 15:48:02 -04:00
committed by GitHub

View File

@@ -116,7 +116,7 @@ def addhostgroup(args):
print('Missing host group name argument', file=sys.stderr)
showUsage(args)
name = args[1]
name = args[0]
content = loadYaml(hostgroupsFilename)
if name in content['firewall']['hostgroups']:
print('Already exists', file=sys.stderr)