You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseException(f"Error installing to stack '{config.splunk_cloud_stack}' (stack_type='{config.stack_type}') via ACS:\n{str(e)}")
39
-
35
+
raiseException(
36
+
f"Error installing to stack '{config.splunk_cloud_stack}' (stack_type='{config.stack_type}') via ACS:\n{str(e)}"
37
+
)
38
+
40
39
try:
41
40
# Request went through and completed, but may have returned a non-successful error code.
42
41
# This likely includes a more verbose response describing the error
43
42
res.raise_for_status()
44
43
print(res.json())
45
-
exceptExceptionase:
44
+
exceptException:
46
45
try:
47
46
error_text=res.json()
48
-
exceptExceptionase:
47
+
exceptException:
49
48
error_text="No error text - request failed"
50
49
formatted_error_text=pprint.pformat(error_text)
51
-
print("While this may not be the cause of your error, ensure that the uid and appid of your Private App does not exist in Splunkbase\n"
52
-
"ACS cannot deploy and app with the same uid or appid as one that exists in Splunkbase.")
53
-
raiseException(f"Error installing to stack '{config.splunk_cloud_stack}' (stack_type='{config.stack_type}') via ACS:\n{formatted_error_text}")
54
-
55
-
print(f"'{config.getPackageFilePath(include_version=False)}' successfully installed to stack '{config.splunk_cloud_stack}' (stack_type='{config.stack_type}') via ACS!")
50
+
print(
51
+
"While this may not be the cause of your error, ensure that the uid and appid of your Private App does not exist in Splunkbase\n"
52
+
"ACS cannot deploy and app with the same uid or appid as one that exists in Splunkbase."
53
+
)
54
+
raiseException(
55
+
f"Error installing to stack '{config.splunk_cloud_stack}' (stack_type='{config.stack_type}') via ACS:\n{formatted_error_text}"
56
+
)
57
+
58
+
print(
59
+
f"'{config.getPackageFilePath(include_version=False)}' successfully installed to stack '{config.splunk_cloud_stack}' (stack_type='{config.stack_type}') via ACS!"
0 commit comments