Merge "Fix potential NameError of rc_id"

This commit is contained in:
Zuul 2019-09-08 06:03:13 +00:00 committed by Gerrit Code Review
commit e74236d819
2 changed files with 2 additions and 0 deletions

View File

@ -2124,6 +2124,7 @@ class StorwizeHelpers(object):
rc_id = self.ssh.mkrcrelationship(master, aux, system, rc_id = self.ssh.mkrcrelationship(master, aux, system,
asyncmirror, cyclingmode) asyncmirror, cyclingmode)
except exception.VolumeBackendAPIException as e: except exception.VolumeBackendAPIException as e:
rc_id = None
# CMMVC5959E is the code in Stowize storage, meaning that # CMMVC5959E is the code in Stowize storage, meaning that
# there is a relationship that already has this name on the # there is a relationship that already has this name on the
# master cluster. # master cluster.

View File

@ -2902,6 +2902,7 @@ class InStorageAssistant(object):
rc_id = self.ssh.mkrcrelationship(master, aux, system, rc_id = self.ssh.mkrcrelationship(master, aux, system,
asynccopy) asynccopy)
except exception.VolumeBackendAPIException as e: except exception.VolumeBackendAPIException as e:
rc_id = None
# CMMVC5959E is the code in InStorage, meaning that # CMMVC5959E is the code in InStorage, meaning that
# there is a relationship that already has this name on the # there is a relationship that already has this name on the
# master cluster. # master cluster.