Merge "Fix potential NameError of rc_id"
This commit is contained in:
commit
e74236d819
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue