Skip to content

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

Open
ldav1s wants to merge 1 commit into
circus-tent:masterfrom
ldav1s:endpoint-owner-mode-add-uid-as-int
Open

Accepting the endpoint owner as a uid in addition to their username#967
ldav1s wants to merge 1 commit into
circus-tent:masterfrom
ldav1s:endpoint-owner-mode-add-uid-as-int

Conversation

@ldav1s

@ldav1s ldav1s commented Mar 14, 2016

Copy link
Copy Markdown

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.

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
Copy Markdown
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

ldav1s commented Aug 13, 2016

Copy link
Copy Markdown
Author

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

@k4nar

k4nar commented Aug 16, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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