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

Merged
merged 2 commits into from
Nov 26, 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.

Closes-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
Copy link
Contributor

@thedac thedac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thedac thedac merged commit 4b226ef into juju:master Nov 26, 2018
@ajkavanagh ajkavanagh deleted the bug/246 branch November 27, 2018 11:29
ajkavanagh added a commit to ajkavanagh/charm-helpers that referenced this pull request Nov 27, 2018
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 pushed a commit that referenced this pull request Nov 27, 2018
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: #246
LP-Bug: #1796830
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