You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing an issue using ipasudorule with existing sudo rules that have runasuser set with plugins/modules/ipasudorule.py", line 567.
If the existing rule has an external runasuser I get "can only concatenate list (not "tuple") to list" and if the existing rule has an internal runasuser I get "can only concatenate tuple (not "list") to tuple". It works if I have neither or both. The issue appears to be to do with building the union list of the ipasudorunas_user and ipasudoextrunasuser values.
The issue appears to be resolved if I do something like this instead:
I am seeing an issue using ipasudorule with existing sudo rules that have runasuser set with plugins/modules/ipasudorule.py", line 567.
If the existing rule has an external runasuser I get "can only concatenate list (not "tuple") to list" and if the existing rule has an internal runasuser I get "can only concatenate tuple (not "list") to tuple". It works if I have neither or both. The issue appears to be to do with building the union list of the ipasudorunas_user and ipasudoextrunasuser values.
The issue appears to be resolved if I do something like this instead:
But I am not sure of a nice way to inline that and it might be better to fix it in how the values of res_find are built so they are both lists.
The text was updated successfully, but these errors were encountered: