Skip to content

add additional checks for instance ssh key conditional #70

Closed
@kral2

Description

@kral2

From discussion Originally posted by @calorbeer in #67 (comment)

There is an issue with ssh_public_key variables having default value set to null.

If var.ssh_public_key value is set by the user, ssh_authorized_keys argument is set correctly however if it's null the condition is also evaluated to true and as a result it is set to null. The file statements are never reached. To avoid this the variables either need to default to "" or the conditions have to test for != null and "".

To do:

  • test should be done uppon null and we also initialize relavant variables to null
  • rename ssh_public_key_path to ssh_public_keys_file (plural form for keys and mention file explicitely)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions