Skip to content

The import role ... command fails with --replace on initial import#98

Merged
privateip merged 1 commit intoitential:develfrom
privateip:fix-role-import
Mar 29, 2025
Merged

The import role ... command fails with --replace on initial import#98
privateip merged 1 commit intoitential:develfrom
privateip:fix-role-import

Conversation

@privateip
Copy link
Member

The import role ... command will fail with an error that states the role does not exist when attempting to import a role for the first time
and using --replace. This fix will now check the return message from
the API call and if the role doe not exist, it will not attempt to
replace it.

fixes #94

The `import role ...` command will fail with an error that states the
role does not exist when attempting to import a role for the first time
and using `--replace`.   This fix will now check the return message from
the API call and if the role doe not exist, it will not attempt to
replace it.

fixes #94
@privateip privateip merged commit 6204002 into itential:devel Mar 29, 2025
1 check passed
@privateip privateip deleted the fix-role-import branch March 29, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import Role - On first import, using the --replace flag, Error tells me the role doesn't exist,

1 participant