sassoftware / pyviyatools

Python command-line tools that call the SAS Viya REST APIs - for SAS administrators.
Apache License 2.0
38 stars 31 forks source link

Update getposixidentity.py #213

Closed tonineri closed 6 months ago

tonineri commented 6 months ago

When launching:

python3 getposixidentity.py -o csv

I get the following error:

Traceback (most recent call last):
  File "/home/sasviya/viya4/viya4-utilities/pyviyatools/getposixidentity.py", line 64, in <module>
    if posixinfo_result_json.has_key("secondaryGids"):
AttributeError: 'dict' object has no attribute 'has_key'

By modifying line 64, it runs as expected.

gerrynelson63 commented 6 months ago

thank you @tonineri