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

Accepting the endpoint owner as a uid in addition to their username #967

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Accepting the endpoint owner as a uid in addition to their username #967

wants to merge 1 commit into from

Conversation

ldav1s
Copy link

@ldav1s ldav1s commented Mar 14, 2016

I can get the username, but only getting the uid is much easier. The controller already gets the uid in endpoint owner mode, it just doesn't store it away.

@@ -76,7 +76,7 @@ def execute(self, arbiter, props):
# escalation
if arbiter.endpoint_owner_mode:
cmd_uid = options.get('uid', None)
if cmd_uid != arbiter.endpoint_owner:
if cmd_uid not in arbiter.endpoint_owner_ids:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should have two options, one for the uid and one for the username. Mixing both is confusing.

@ldav1s
Copy link
Author

ldav1s commented Aug 13, 2016

I'm OK with that. Unfortunately, the option that now only takes usernames is currently called 'uid', IIRC.

@k4nar
Copy link
Contributor

k4nar commented Aug 16, 2016

Yes indeed. However I think we could treat that as a bug and introduce the change. A warning if we get a uid would be awesome though.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 62.675% when pulling 559fc78 on ldav1s:endpoint-owner-mode-add-uid-as-int into 0198d55 on circus-tent:master.

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.

3 participants