Changes that make ansible-lint happy. nosec on the subprocess commands
This commit is contained in:
parent
9532462535
commit
4cdc78915f
5 changed files with 23 additions and 11 deletions
|
|
@ -142,6 +142,7 @@ def _role_id(raw: str) -> str:
|
|||
s = "r_" + s
|
||||
return s
|
||||
|
||||
|
||||
def _role_name_from_unit(unit: str) -> str:
|
||||
base = _role_id(unit.removesuffix(".service"))
|
||||
return _safe_name(base)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue