bseltz-cohesity / scripts

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

Option to specify mount "-m mountpoint" broke #78

Closed dragongeek closed 2 years ago

dragongeek commented 2 years ago

Since adding the last feature, the "-m" option to specify a mount instead performs a mount-all, as evidenced below:

[root@radar bin]# ./instantVolumeMount.py -v liscohobkup -u apiuser -d local -s nuka02 -t nuka02 -a -m /local Connected! mounting volumes to nuka02... Volume mount ended with status kSuccess Task ID for tearDown is: 2223202 /uvinstance mounted to /opt/cohesity/mount_paths/vol_mounts/1662483833243892_task2223202_1_agent_vmfs_vmfs /kiska_ssa mounted to /opt/cohesity/mount_paths/vol_mounts/1662483834213478_task2223202_1_agent_vmfs_vmfs lvol_1 mounted to /opt/cohesity/mount_paths/vol_mounts/1662483835141758_task2223202_1_agent_vmfs__0_vmfs /boot mounted to /opt/cohesity/mount_paths/vol_mounts/1662483836678969_task2223202_1_agent_vmfs_0x000cebe3_1_vmfs / mounted to /opt/cohesity/mount_paths/vol_mounts/1662483836856476_task2223202_1_agent_vmfs_vmfs /u0 mounted to /opt/cohesity/mount_paths/vol_mounts/1662483837533030_task2223202_1_agent_vmfs_vmfs /local mounted to /opt/cohesity/mount_paths/vol_mounts/1662483838268629_task2223202_1_agent_vmfs_vmfs

bseltz-cohesity commented 2 years ago

The README has the updated command line parameters. -vol is what you're looking for: https://github.com/bseltz-cohesity/scripts/tree/master/python/instantVolumeMount

dragongeek commented 2 years ago

Oh, so sorry. I missed that change. It works when I fix the parameter. Thank you!