Skip to content

Commit

Permalink
importgroups: update check existing groups
Browse files Browse the repository at this point in the history
Update status codes that reflect that a group already exists, based
on tests on Yoda 1.10 (development version).
  • Loading branch information
stsnel committed Apr 18, 2024
1 parent 48d9741 commit b9764ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fix regression that broke the ensuremembers tool
- Ensuremembers: add message in verbose mode that confirms validation checks passed
- Importgroups: update check existing groups in update mode for Yoda 1.10

## 2024-04-08 v1.1.0

Expand Down
2 changes: 1 addition & 1 deletion yclienttools/importgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def apply_data(rule_interface, args, data):
[status, msg] = rule_interface.call_uuGroupAdd(
groupname, category, subcategory, '', 'unspecified', schema_id, expiration_date)

if ((status == '-1089000') | (status == '-809000')) and args.allow_update:
if ((status in '-1089000', '-809000', '-806000')) and args.allow_update:
print(
'WARNING: group "{}" not created, it already exists'.format(groupname))
if schema_id != '':
Expand Down

0 comments on commit b9764ee

Please sign in to comment.