Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7607

Resource type ssh_authorized key, 'name' attribute accepts a blank string

    Details

      Description

      Specifying a blank string for the 'name' attribute should probably throw an error, because the documentation says that the name has to be unique to the system.

      The manifest I used to test:

      $username = 'testuser'
      $keyname = 'has_a_blank_name'
       
      user { $username:
        ensure => present,
        managehome => true,
      }
      ->
      ssh_authorized_key {$keyname:
        ensure => present,
        name => "",
        user => $username,
        type => 'ssh-rsa',
        key => 'AAAAB3NzaC1yc2EAAAABIwAAAQEAy5mtOAMHwA2ZAIfW6Ap70r+I4EclYHEec5xIN59ROUjss23Skb1OtjzYpVPaPH8mSdSmsN0JHaBLiRcu7stl4O8D8zA4mz/vw32yyQ/Kqaxw8l0K76k6t2hKOGqLTY4aFbFISV6GDh7MYLn8KU7cGp96J+caO5R5TqtsStytsUhSyqH+iIDh4e4+BrwTc6V4Y0hgFxaZV5d18mLA4EPYKeG5+zyBCVu+jueYwFqM55E0tHbfiaIN9IzdLV+7NEEfdLkp6w2baLKPqWUBmuvPF1Mn3FwaFLjVsMT3GQeMue6b3FtUdTDeyAYoTxrsRo/WnDkS6Pa3YhrFwjtUqXfdaQ==',
      }
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joe.pinsonault Joe Pinsonault
              QA Contact:
              Joe Pinsonault
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support