Skip to content

Foreman.puppetclasses.show() returns inconsistent types #45

@tmclaugh

Description

@tmclaugh

Tracked down an inconsistency while troubleshooting an error in my app. After getting the data back from Foreman I was expecting to interact with a dictionary but was unexpectedly interacting with a list.

In [112]: type(foreman_client.puppetclasses.show('apache'))
Out[112]: dict

In [113]: type(foreman_client.puppetclasses.show('apache1'))
Out[113]: list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions