mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 05:43:26 +00:00
utils/ansible-ipa-[server,replica,client]-install: Print excessive args
Excessive args are printed now. The simple print of the message too many arguments was not helping.
This commit is contained in:
@@ -222,7 +222,7 @@ def parse_options():
|
||||
if len(args) < 1:
|
||||
parser.error("ansible host not set")
|
||||
elif len(args) > 1:
|
||||
parser.error("too many arguments")
|
||||
parser.error("too many arguments: %s" % ",".join(args))
|
||||
|
||||
return options, args
|
||||
|
||||
|
||||
@@ -290,7 +290,7 @@ def parse_options():
|
||||
if len(args) < 1:
|
||||
parser.error("ansible host not set")
|
||||
elif len(args) > 1:
|
||||
parser.error("too many arguments")
|
||||
parser.error("too many arguments: %s" % ",".join(args))
|
||||
|
||||
return options, args
|
||||
|
||||
|
||||
@@ -326,7 +326,7 @@ def parse_options():
|
||||
if len(args) < 1:
|
||||
parser.error("ansible host not set")
|
||||
elif len(args) > 1:
|
||||
parser.error("too many arguments")
|
||||
parser.error("too many arguments: %s" % ",".join(args))
|
||||
|
||||
return options, args
|
||||
|
||||
|
||||
Reference in New Issue
Block a user