bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
102 stars 41 forks source link

Error by register new server #166

Closed HenrikFFM closed 4 months ago

HenrikFFM commented 4 months ago
schuetzeh@WKSTXL054B:~$ python3 registerPhysical.py  -v <cluster name> -u admin -d local -s <server name> -m 458181
Connected!
Traceback (most recent call last):
  File "/home/schuetzeh/registerPhysical.py", line 104, in <module>
    if existingsource is not None and len(existingsource) > 0:
NameError: name 'existingsource' is not defined

What can i do ?

bseltz-cohesity commented 4 months ago

Fixed, I think. Let me know. I believe the error would only happen if you have no physical sources registered on the cluster. https://github.com/cohesity/community-automation-samples/tree/main/python/registerPhysical