Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update copy_nrpe_checks() for optional c-h directory (#247) #251

Merged
merged 1 commit into from
Nov 27, 2018

Conversation

ajkavanagh
Copy link
Collaborator

The function assumed that the charmhelpers directory would always be in
the hooks directory. However, with PY3 it can be very tricky to try to
keep a symlink in the hooks directory. Therefore, for some PY3
non-reactive charms, charmhelpers was moved to the CHARMDIR. However,
this caused this function to fail.

The change here is to search for the charmhelpers directory in both
CHARMDIR and CHARMDIR/hooks and then use that.

Cherry-picked from master

Related-Bug: #246
LP-Bug: #1796830

The function assumed that the charmhelpers directory would always be in
the hooks directory.  However, with PY3 it can be very tricky to try to
keep a symlink in the hooks directory.  Therefore, for some PY3
non-reactive charms, charmhelpers was moved to the CHARMDIR.  However,
this caused this function to fail.

The change here is to search for the charmhelpers directory in both
CHARMDIR and CHARMDIR/hooks and then use that.

Closes-Bug: juju#246
LP-Bug: #1796830
@ryan-beisner ryan-beisner merged commit 87af6df into juju:stable/18.11 Nov 27, 2018
@ajkavanagh ajkavanagh deleted the stable/18.11 branch May 8, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants