Skip to content

Commit

Permalink
Re run generate_zzz and disable git check
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 28, 2022
1 parent 9cdf590 commit 3e2ed8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,16 @@ def check_python_version() -> None:


def check_zap_master() -> str:
"""Produces hash of ZAP submodule in branch master"""
git_cmd = ["git", "ls-tree", "master", "third_party/zap/repo"]
zap_commit = str(subprocess.check_output(git_cmd, cwd=_REPO_BASE_PATH))
zap_commit = zap_commit.split(" ")[2]
zap_commit = zap_commit[:zap_commit.index("\\")]
"""Produces hash of ZAP submodule in branch master
This will need to be replaced with stateful shell once it supports output
The branch should be taken as a parameter
Old code to show intent:
# git_cmd = ["git", "ls-tree", "master", "third_party/zap/repo"]
# zap_commit = str(subprocess.check_output(git_cmd, cwd=_REPO_BASE_PATH))
# zap_commit = zap_commit.split(" ")[2]
# zap_commit = zap_commit[:zap_commit.index("\\")]
"""
zap_commit = 'TEMP DISABLED'
flush_print(f"zap commit: {zap_commit}")
return zap_commit

Expand Down
2 changes: 1 addition & 1 deletion examples/chef/cimanifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"lighting-app": "81a1262e611fab1a71ac4129b91cec0f",
"zap_commit": "6594a9257ce96ee6d852eed052939849b31259fc"
"zap_commit": "TEMP DISABLED"
}

0 comments on commit 3e2ed8e

Please sign in to comment.