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:
Thomas Woerner
2019-08-06 12:39:03 +02:00
parent 45af7348fe
commit d43b4429e6
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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