Skip to content

Commit a498678

Browse files
committed
update
1 parent 18fc529 commit a498678

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

acceptance/bin/print_state.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@
99
import os
1010

1111

12+
def write(filename):
13+
data = open(filename).read()
14+
print(data, end='')
15+
if not data.endswith("\n"):
16+
print()
17+
18+
1219
filename = ".databricks/bundle/default/terraform/terraform.tfstate"
1320
if os.path.exists(filename):
14-
print(open(filename).read().strip())
21+
write(filename)
1522

1623
filename = ".databricks/bundle/default/resources.json"
1724
if os.path.exists(filename):
18-
print(open(filename).read().strip())
25+
write(filename)

0 commit comments

Comments
 (0)