We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03e149d commit 73afc61Copy full SHA for 73afc61
1 file changed
List_Volumes.py
@@ -14,7 +14,7 @@
14
15
# Global Variables
16
VERSION = '1.1.0'
17
-API_VERSION = '1.12'
+DEFAULT_API_VERSION = '1.12'
18
HEADER = 'Pure Storage List Volumes (' + VERSION + ')'
19
BANNER = ('=' * 102)
20
DEBUG_LEVEL = 0
@@ -277,6 +277,9 @@ def main():
277
if flashArray == None:
278
sys.exit('Exiting: You must provide FlashArray details')
279
280
+ if API_VERSION == None:
281
+ API_VERSION = DEFAULT_API_VERSION
282
+
283
if api_token == None and user == None:
284
sys.exit('Exiting: You must provide either API Token details or username and password')
285
0 commit comments