Skip to content

Commit bedd26c

Browse files
committed
Improve deploy.sh/uninstall.sh, particularly when a role is deleted/undeleted
1 parent b6cfc34 commit bedd26c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

main.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@
6666
gcp_utils.set_env()
6767

6868
logging.info("env is %s", sort_dict((os.environ.copy())))
69-
logging.info("Configuration is %s", json.dumps(config_utils.get_config()).replace("\n",""))
69+
logging.info(
70+
"Configuration is %s", json.dumps(config_utils.get_config()).replace("\n", "")
71+
)
7072

7173
PluginHolder.init()
7274

test_scripts/integration_test/run_integration_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
elif clsname_base == "GCE":
2020
test = PubSubIntegTest()
2121
else:
22-
raise Exception(clsname_base + " unknown")
22+
raise Exception("No class " + clsname_base + " known")
2323
print("Test " + type(test).__name__)
2424
test.deploy_test_and_uninstall()
2525
print("Exit Status:", "Failure" if test.exit_code else "Success")

util/gcp/gcp_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
__invocation_count = Counter()
1919

20+
2021
def increment_invocation_count(path: str):
2122
global __invocation_count
2223
__invocation_count[path] += 1

0 commit comments

Comments
 (0)