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

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

    XMLWordPrintable

Details

    • 1
    • Client 2016-06-29, Client 2016-07-27
    • Bug Fix
    • 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

            People

              Unassigned Unassigned
              kylo Kylo Ginsberg
              John Duarte John Duarte
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support