Change-Id: I15deb824a85aa561c2f2e7f4ea6b4b1ce96367f9
This commit is contained in:
Pablo Iranzo Gómez 2016-06-29 17:41:57 +02:00
parent 5d62b178c3
commit c9f938b9d0
No known key found for this signature in database
GPG Key ID: 034823665BD8E1E4
1 changed files with 12 additions and 12 deletions

View File

@ -1154,19 +1154,19 @@ class GroupsHandler(object):
if command_status == 0: if command_status == 0:
LOG.info("%s has been successfully created" % group) LOG.info("%s has been successfully created" % group)
elif command_status == 9: elif command_status == 9:
LOG.error("An error occured creating %s group : " % LOG.error("An error occurred creating %s group : " %
group + "group name not unique") group + "group name not unique")
elif command_status == 4: elif command_status == 4:
LOG.error("An error occured creating %s group : " % LOG.error("An error occurred creating %s group : " %
group + "GID not unique") group + "GID not unique")
elif command_status == 3: elif command_status == 3:
LOG.error("An error occured creating %s group : " % LOG.error("An error occurred creating %s group : " %
group + "GID not valid") group + "GID not valid")
elif command_status == 2: elif command_status == 2:
LOG.error("An error occured creating %s group : " % LOG.error("An error occurred creating %s group : " %
group + "Invalid syntax") group + "Invalid syntax")
else: else:
LOG.error("An error occured creating %s group" % group) LOG.error("An error occurred creating %s group" % group)
class UsersHandler(object): class UsersHandler(object):
@ -1209,22 +1209,22 @@ class UsersHandler(object):
if command_status == 0: if command_status == 0:
LOG.info("%s has been successfully created" % user) LOG.info("%s has been successfully created" % user)
elif command_status == 9: elif command_status == 9:
LOG.error("An error occured creating %s user : " % LOG.error("An error occurred creating %s user : " %
user + "user name not unique") user + "user name not unique")
elif command_status == 6: elif command_status == 6:
LOG.error("An error occured creating %s user : " % LOG.error("An error occurred creating %s user : " %
user + "group does not exist") user + "group does not exist")
elif command_status == 4: elif command_status == 4:
LOG.error("An error occured creating %s user : " % LOG.error("An error occurred creating %s user : " %
user + "UID not unique") user + "UID not unique")
elif command_status == 3: elif command_status == 3:
LOG.error("An error occured creating %s user : " % LOG.error("An error occurred creating %s user : " %
user + "Invalid argument") user + "Invalid argument")
elif command_status == 2: elif command_status == 2:
LOG.error("An error occured creating %s user : " % LOG.error("An error occurred creating %s user : " %
user + "Invalid syntax") user + "Invalid syntax")
else: else:
LOG.error("An error occured creating %s user" % user) LOG.error("An error occurred creating %s user" % user)
class MetadataServerConnectionError(Exception): class MetadataServerConnectionError(Exception):
@ -1256,7 +1256,7 @@ class Metadata(object):
self._has_changed = False self._has_changed = False
def remote_metadata(self): def remote_metadata(self):
"""Connect to the metadata server and retreive the metadata.""" """Connect to the metadata server and retrieve the metadata."""
if self.credentials_file: if self.credentials_file:
credentials = parse_creds_file(self.credentials_file) credentials = parse_creds_file(self.credentials_file)