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

applyviyarules.py stops when a rule already exists #174

Closed tomstarr closed 1 year ago

tomstarr commented 1 year ago

When applyviyarules.py is run, all rules will be applied until one, which is being attempted to being applied, already exists, in which case the job will finish and no apply the remainder of the rules from the input CSV file.

This is an issue when trying to apply rules in a 'delta update' fashion.

applyviyarules.py should be updated to accommodate this scenario and to skip, rather than finish, when it encounters a rule that already exists.

tomstarr commented 1 year ago

Dev in progress will act as workaround when released. For permanent fix I've raised issue 7613839651 to address root cause.

tomstarr commented 1 year ago

Dev work has now been completed to workaround this issue/s. The updates to toggleviyarules.py and applyviyarules.py will be tested during an Auth Model implementation this week, before being committed to the project.

tomstarr commented 1 year ago

changes committed, pending pull request #180.