Unverified Commit 5d2e4e2d authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #61273 from juju-solutions/bug/actions-charm-env

Automatic merge from submit-queue (batch tested with PRs 60980, 61273, 60811, 61021, 61367). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Use charm env in actions to get have charmhelpers available **What this PR does / why we need it**: Due to changes in the base layer the actions in the Juju charms do not have access to charmhelpers in the default environment. This PR fixes this issue. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents d383ca10 d6c62198
#!/usr/bin/env python3 #!/usr/local/sbin/charm-env python3
# Copyright 2015 The Kubernetes Authors. # Copyright 2015 The Kubernetes Authors.
# #
......
#!/usr/bin/env python3 #!/usr/local/sbin/charm-env python3
import os import os
from yaml import safe_load as load from yaml import safe_load as load
from charmhelpers.core.hookenv import ( from charmhelpers.core.hookenv import (
......
#!/usr/bin/env python3 #!/usr/local/sbin/charm-env python3
# Copyright 2015 The Kubernetes Authors. # Copyright 2015 The Kubernetes Authors.
# #
......
#!/usr/bin/python3 #!/usr/local/sbin/charm-env python3
# #
# For a usage examples, see README.md # For a usage examples, see README.md
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment