]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commit
ssh_authorzed_key: Fix invalid 'options' error
authorNate McCurdy <mccurdy.nate@gmail.com>
Wed, 31 Oct 2018 16:32:09 +0000 (09:32 -0700)
committerNate McCurdy <mccurdy.nate@gmail.com>
Wed, 31 Oct 2018 16:32:09 +0000 (09:32 -0700)
commitfeceaf44ea6e7f23196bf98f98978088dc2f567a
treea9fc7f31fc6a3e01614ba15f3db25084a495e0e7
parentbd22643b7f6d8755f410ca5e4a11d3e4abf77559
ssh_authorzed_key: Fix invalid 'options' error

Prior to this, the example of a valid "options" value for the
ssh_authorized_key type was syntactically incorrect; it did not include
the closing single quote.

Example of incorrect error message:

```
Error: Parameter options failed on Ssh_authorized_key[testkey]: Option from=foo.com is not valid. A single option must either be of the form 'option' or 'option="value". Multiple options must be provided as an array (file: /tmp/test.pp, line: 5)
```

After this, the error shows the correct syntax for specifying an option:

```
Error: Parameter options failed on Ssh_authorized_key[testkey]: Option from=foo.com is not valid. A single option must either be of the form 'option' or 'option="value"'. Multiple options must be provided as an array (file: /tmp/test.pp, line: 5)
```
lib/puppet/type/ssh_authorized_key.rb