Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2316

Attributes attribute will not accept a single value for the User resource in AIX

    Details

    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2016-06-29, Client 2016-07-27
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      This fixes allows the `attributes` parameter for the `user` resource to accept an array with a single value in AIX. Prior to this fix, an error would be thrown in the if the array only contained one value.

      Description

      This seems to be a bug specific to AIX. When you pass a single value within the attributes array in a User resource:

      user { 'existinguser':
        ensure     => present,
        attributes => ['rlogin=false'],
        home       => '/home/existinguser',
      }  
      

      It throws the following error upon applying the change:

      "Error: /User[root]: Could not evaluate: undefined methodmap' for "rlogin=false":String"`
      

      The only workaround I have managed is to add another value to the attributes array.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  kylo Kylo Ginsberg
                  QA Contact:
                  John Duarte
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: