Skip to content

Commit fe3722d

Browse files
committed
Changed all instances of errorDescr to errorMsg
Signed-off-by: Matt Oswalt <[email protected]>
1 parent 39c6752 commit fe3722d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

functions/newfunctions_ucs.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def createVLAN(self, vlanid, vlanname):
107107
print "Created VLAN " + str(vlanid) + ": " + vlanname
108108
except UcsException as e:
109109
print "VLAN " + str(vlanid) + ": " + vlanname + \
110-
" already exists -- " + e.errorDescr
110+
" already exists -- " + e.errorMsg
111111

112112
def removeVLAN(self, mo):
113113
#TODO: in the usual workflow, you're retrieving the VLAN objects
@@ -123,7 +123,7 @@ def removeVLAN(self, mo):
123123
#TODO: This has a different exxception type for missing objects
124124
except UcsValidationException as e:
125125
print "VLAN " + str(mo.Id) + ": " + mo.Name + \
126-
" already deleted -- " + e.errorDescr
126+
" already deleted -- " + e.errorMsg
127127

128128
###########
129129
# VSANS #
@@ -159,7 +159,7 @@ def createVSAN(self, fabricid, vsanid, vsanname):
159159
print "Created VSAN " + str(vsanid) + ": " + vsanname
160160
except UcsException as e:
161161
print "VSAN " + str(vsanid) + ": " + vsanname + \
162-
" already exists -- " + e.errorDescr
162+
" already exists -- " + e.errorMsg
163163

164164
def removeVSAN(self, mo):
165165
try:
@@ -172,7 +172,7 @@ def removeVSAN(self, mo):
172172
#TODO: This has a different exxception type for missing objects
173173
except UcsValidationException as e:
174174
print "VSAN " + str(mo.Id) + ": " + mo.Name + \
175-
" already deleted -- " + e.errorDescr
175+
" already deleted -- " + e.errorMsg
176176

177177
###############
178178
# MAC POOLS #
@@ -558,7 +558,7 @@ def removeVnicVlan(self, vnic, vlanname):
558558
#TODO: This has a different exception type for missing objects
559559
except UcsValidationException as e:
560560
print "VLAN " + str(vlanname) + ": " + vnic.Dn + \
561-
" already deleted -- " + e.errorDescr
561+
" already deleted -- " + e.errorMsg
562562

563563
####################
564564
# VHBA TEMPLATES #
@@ -693,7 +693,7 @@ def addVnicFromTemplate(self, spt, vnicname):
693693
"NwTemplName": vnicname
694694
})
695695
except UcsException as e:
696-
print "VNIC MAP - vnic already mapped to SPT -- " + e.errorDescr
696+
print "VNIC MAP - vnic already mapped to SPT -- " + e.errorMsg
697697

698698
def addVhbaFromTemplate(self, spt, vhbaname):
699699
try:
@@ -711,7 +711,7 @@ def addVhbaFromTemplate(self, spt, vhbaname):
711711
"NwTemplName": vhbaname
712712
})
713713
except UcsException as e:
714-
print "VHBA MAP - vhba already mapped to SPT -- " + e.errorDescr
714+
print "VHBA MAP - vhba already mapped to SPT -- " + e.errorMsg
715715

716716
def setWWNNPool(self, spt, poolname):
717717
try:

0 commit comments

Comments
 (0)