Skip to content

Commit

Permalink
Fixing semantic error in Version.py. == vs is
Browse files Browse the repository at this point in the history
  • Loading branch information
slw07g committed Aug 2, 2020
1 parent 24092db commit 7802b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyVmomi/Version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def AddVersion(version, ns, versionId='', isLegacy=0, serviceNs=''):
nsMap[version] = ns
if len(versionId) > 0:
versionMap[ns + '/' + versionId] = version
if isLegacy or ns is "":
if isLegacy or ns == "":
versionMap[ns] = version
versionIdMap[version] = versionId
if not serviceNs:
Expand Down

0 comments on commit 7802b64

Please sign in to comment.