fix shareddrive name

This commit is contained in:
Jay Lee
2022-04-07 20:20:02 +00:00
parent 332519e5d4
commit 97b74c0c8f
3 changed files with 11 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ def drive_name_to_id(name, drive=None):
q=q,
useDomainAdminAccess=True)
if len(sds) == 0:
controlflow.system_error_exit(f'Could not find shared drive named "{name}"')
controlflow.system_error_exit(3, f'Could not find shared drive named "{name}"')
elif len(sds) > 1:
controlflow.system_error_exit(f'Got more than one shared drive named "{name}"')
controlflow.system_error_exit(3, f'Got more than one shared drive named "{name}"')
return sds[0]['id']