Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

'str' object has no attribute 'iteritems' #2

Closed
cawilliamson opened this issue Oct 26, 2016 · 2 comments
Closed

'str' object has no attribute 'iteritems' #2

cawilliamson opened this issue Oct 26, 2016 · 2 comments
Assignees
Labels

Comments

@cawilliamson
Copy link
Contributor

Hey there!

This is possibly just me using the module wrong here but I am having the following error when I try and use anything other than a single value:

'str' object has no attribute 'iteritems'

A chunk of code which produces this in Ansible is:

- name: sort finder icons by name
  plist_file:
    dest: com.apple.finder
    value:
      'StandardViewSettings':
        'IconViewSettings':
          'arrangeBy': 'Name'

Any ideas here? I'm thinking somehow the value input is being interpreted by the python script as a single string instead of ending up as a dict.

Thanks!

@mtneug
Copy link
Owner

mtneug commented Oct 26, 2016

Hi, thank you for reporting. I could reproduce this error. The last time I used this module is already some time ago. This seems to be a change in Ansible 2.1. If I find time I will look into it deeper.

@mtneug mtneug self-assigned this Oct 26, 2016
@mtneug mtneug added the bug label Oct 26, 2016
@mtneug
Copy link
Owner

mtneug commented Oct 27, 2016

Closed with #3

@mtneug mtneug closed this as completed Oct 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants