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