mirror of https://gitlab.com/bashrc2/epicyon
Check that role file exists
parent
d463e62ee5
commit
206a56414a
1
roles.py
1
roles.py
|
@ -137,6 +137,7 @@ def setRole(baseDir: str, nickname: str, domain: str,
|
||||||
else:
|
else:
|
||||||
# remove the role
|
# remove the role
|
||||||
if project == 'instance':
|
if project == 'instance':
|
||||||
|
if roleFiles.get(role):
|
||||||
_removeRole(baseDir, nickname, roleFiles[role])
|
_removeRole(baseDir, nickname, roleFiles[role])
|
||||||
if actorJson['roles'].get(project):
|
if actorJson['roles'].get(project):
|
||||||
actorJson['roles'][project].remove(role)
|
actorJson['roles'][project].remove(role)
|
||||||
|
|
Loading…
Reference in New Issue