-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14841 from cmisare-canonical/2.9
#14841 Better handling of /etc/profile.d/juju-proxy.sh script creation, so that both the controller direct script and non-controller cloud-init script behave as desired. ## Checklist - [X] Code style: imports ordered, good names, simple structure, etc ~- [] Comments saying why design decisions were made~ - [X] Go unit tests, with comments saying what you're testing ~- [] [Integration tests](https://github.com/juju/juju/tree/develop/tests), with comments saying what you're testing~ ~- [] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages~ ## QA steps Confirm there is no "command not found" output when doing `juju ssh` to a bootstrapped controller or a deployed unit and that the content of `/etc/profile.d/juju-proxy.sh` is as desired. ``` $ juju bootstrap lxd $ juju ssh -m controller 0 [no "command not found" error] $ juju ssh -m controller 0 'cat /etc/profile.d/juju-proxy.sh' # Added by juju [ -f "/etc/juju-proxy.conf" ] && . "/etc/juju-proxy.conf" $ juju deploy -m default ubuntu $ juju ssh -m default 0 [no "command not found" error] $ juju ssh -m default 0 'cat /etc/profile.d/juju-proxy.sh' # Added by juju [ -f "/etc/juju-proxy.conf" ] && . "/etc/juju-proxy.conf" ``` ## Bug reference https://bugs.launchpad.net/juju/+bug/1994911
- Loading branch information
Showing
2 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters