Fix JAAS registration for 2.2-beta4 #879

Merged
merged 1 commit into from May 10, 2017

Conversation

Projects
None yet
2 participants
Collaborator

johnsca commented May 10, 2017

Juju 2.2-beta4 switched to per-controller macaroon files.

Fixes #878

Fix JAAS registration for 2.2-beta4
Juju 2.2-beta4 switched to per-controller macaroon files.

Fixes #878
Collaborator

johnsca commented May 10, 2017

This is blocked on juju/python-libjuju#124 but shouldn't require any further changes once that is fixed.

@battlemidget battlemidget self-requested a review May 10, 2017

stdout, stderr = await asyncio.wait_for(proc.communicate(stdin),
timeout)
stdout = stdout.decode('utf8')
stderr = stderr.decode('utf8')
+
+ prefix = 'Enter a name for this controller: '
@battlemidget

battlemidget May 10, 2017

Contributor

Do we provide any input for this or is it just us reading that prefix?

@johnsca

johnsca May 10, 2017

Collaborator

We provide input for it, but Juju has started putting the prompt for it on stderr instead of stdout. All of the other prompts go on stdout like they should. We should probably file a bug, but it doesn't seem like it'd be high priority and the work-around isn't terrible.

@battlemidget

battlemidget May 10, 2017

Contributor

Ok, sounds good

Collaborator

johnsca commented May 10, 2017

libjuju 0.4.2 has been released to pypi with the other part of the fix for this.

@johnsca johnsca merged commit 6e301f2 into master May 10, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@battlemidget battlemidget deleted the bug/878-per-controller-macaroons branch Jun 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment