Skip to content

Remove invalid ssh_import_id from examples#1031

Merged
blackboxsw merged 2 commits into
canonical:mainfrom
TheRealFalcon:invalid-examples
Sep 24, 2021
Merged

Remove invalid ssh_import_id from examples#1031
blackboxsw merged 2 commits into
canonical:mainfrom
TheRealFalcon:invalid-examples

Conversation

@TheRealFalcon
Copy link
Copy Markdown
Contributor

Proposed Commit Message

Remove invalid ssh_import_id from examples

Additional Context

None could be taken to mean, "this is valid but do nothing", but actually specifying None will give an error in the logs.
@akutz requested I remove the VMWare references as well.

We use <ssh pub key 1> in the examples, so I figure using a non-real <Launchpad/Github id> is fine.

Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

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

Let's make our examples the correct type since they are examples :)

selinux_user: staff_u
expiredate: '2032-09-01'
ssh_import_id: foobar
ssh_import_id: <Launchpad/Github id>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These examples are incorrect as ssh_import_id needs to be a list.

Since these are two examples, maybe we could make them explicit for either gh: or lp:?

Suggested change
ssh_import_id: <Launchpad/Github id>
ssh_import_id: [lp:falcojr, gh:TheRealFalcon]

@TheRealFalcon
Copy link
Copy Markdown
Contributor Author

Strings work too, but I updated the examples to be more inline with work you're looking for.

Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

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

Oops right! JSON schema needed here FTW :/

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.

2 participants