Eduardo has uploaded a new change for review. Change subject: task: Fix spelling. ......................................................................
task: Fix spelling. Change-Id: Id218484d254354af0491e189c838839c17622bb5 Signed-off-by: Eduardo <[email protected]> --- M vdsm/storage/task.py 1 file changed, 8 insertions(+), 8 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/27/13127/1 diff --git a/vdsm/storage/task.py b/vdsm/storage/task.py index 9a71b37..cf32723 100644 --- a/vdsm/storage/task.py +++ b/vdsm/storage/task.py @@ -63,7 +63,7 @@ getProcPool = oop.getGlobalProcPool -KEY_SEPERATOR = "=" +KEY_SEPARATOR = "=" TASK_EXT = ".task" JOB_EXT = ".job" RESOURCE_EXT = ".resource" @@ -597,9 +597,9 @@ for line in getProcPool().readLines(filename): # process current line line = line.encode('utf8') - if line.find(KEY_SEPERATOR) < 0: + if line.find(KEY_SEPARATOR) < 0: continue - parts = line.split(KEY_SEPERATOR) + parts = line.split(KEY_SEPARATOR) if len(parts) != 2: cls.log.warning("Task._loadMetaFile: %s - ignoring line" " '%s'", filename, line) @@ -624,10 +624,10 @@ for field in fields: try: value = unicode(getattr(obj, field)) - if KEY_SEPERATOR in field or KEY_SEPERATOR in value: + if KEY_SEPARATOR in field or KEY_SEPARATOR in value: raise ValueError("field and value cannot include %s " - "character" % KEY_SEPERATOR) - lines.append("%s %s %s" % (field, KEY_SEPERATOR, value)) + "character" % KEY_SEPARATOR) + lines.append("%s %s %s" % (field, KEY_SEPARATOR, value)) except Exception: cls.log.warning("Task._dump: object %s skipping field %s" % (obj, field), exc_info=True) @@ -970,8 +970,8 @@ self.defaultException = exceptionObj def setTag(self, tag): - if KEY_SEPERATOR in tag: - raise ValueError("tag cannot include %s character" % KEY_SEPERATOR) + if KEY_SEPARATOR in tag: + raise ValueError("tag cannot include %s character" % KEY_SEPARATOR) self.tag = unicode(tag) def isDone(self): -- To view, visit http://gerrit.ovirt.org/13127 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id218484d254354af0491e189c838839c17622bb5 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Eduardo <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
