diff options
author | Simo Sorce <ssorce@redhat.com> | 2007-12-11 11:00:24 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2007-12-11 11:00:24 -0500 |
commit | 75493763f665970858b26dd06cdf36985fe61940 (patch) | |
tree | 557b19af3dc59c8bcadfa57ca23bfa1dd43505a6 /ipa-admintools/ipa-addgroup | |
parent | 06140245660d4d68a155796418e80867ce853be4 (diff) | |
parent | ca8e71d9381fb61368e5666c4d560ae9417fdf97 (diff) | |
download | freeipa-75493763f665970858b26dd06cdf36985fe61940.tar.gz freeipa-75493763f665970858b26dd06cdf36985fe61940.tar.xz freeipa-75493763f665970858b26dd06cdf36985fe61940.zip |
iMerge with upstream
Diffstat (limited to 'ipa-admintools/ipa-addgroup')
-rw-r--r-- | ipa-admintools/ipa-addgroup | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ipa-admintools/ipa-addgroup b/ipa-admintools/ipa-addgroup index 15d42a91e..8169dea12 100644 --- a/ipa-admintools/ipa-addgroup +++ b/ipa-admintools/ipa-addgroup @@ -62,28 +62,28 @@ def main(): if (len(args) != 2): while (cont != True): cn = raw_input("Group name: ") - if (ipavalidate.plain(cn, notEmpty=True)): - print "Field is required and must be letters or '." + if (ipavalidate.String(cn, notEmpty=True)): + print "Please enter a value" else: cont = True else: cn = args[1] - if (ipavalidate.plain(cn, notEmpty=True)): - print "Group name is required and must be letters or '." + if (ipavalidate.ipastsring(cn, notEmpty=True)): + print "Please enter a value" return 1 cont = False if not options.desc: while (cont != True): desc = raw_input("Description: ") - if (ipavalidate.plain(desc, notEmpty=True)): - print "Field is required and must be letters or '." + if (ipavalidate.String(desc, notEmpty=True)): + print "Please enter a value" else: cont = True else: desc = options.desc - if (ipavalidate.plain(desc, notEmpty=True)): - print "First name is required and must be letters or '." + if (ipavalidate.String(desc, notEmpty=True)): + print "Please enter a value" return 1 if options.gid: |