"supported" option gives error #4

Closed
opened 2019-05-23 10:35:02 +02:00 by laszlobortel · 0 comments
laszlobortel commented 2019-05-23 10:35:02 +02:00 (Migrated from github.com)

I think I have found an issue with the '-s' option:

$ python ansible-maas.py -s
Traceback (most recent call last):
  File "ansible-maas.py", line 201, in <module>
    Inventory()
  File "ansible-maas.py", line 67, in __init__
    print self.supported()
TypeError: 'str' object is not callable

$ python --version
Python 2.7.12

Other options work fine with this python version.
The problem is caused by the same name of "self.supported" string and "self.supported()" method.
Could you please correct the bug?

I think I have found an issue with the '-s' option: ``` $ python ansible-maas.py -s Traceback (most recent call last): File "ansible-maas.py", line 201, in <module> Inventory() File "ansible-maas.py", line 67, in __init__ print self.supported() TypeError: 'str' object is not callable $ python --version Python 2.7.12 ``` Other options work fine with this python version. The problem is caused by the same name of "self.supported" string and "self.supported()" method. Could you please correct the bug?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mvdkleijn/ansible-maas#4
No description provided.