refactor: joined related conditionals together
This commit is contained in:
@@ -15,6 +15,7 @@ from ansible_vault import Vault
|
||||
from cerberus import Validator as constrain_by
|
||||
from random import choice
|
||||
import secrets
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
class ControlNode:
|
||||
__user_path: ExecutedPath = USER_PATH
|
||||
@@ -444,10 +445,7 @@ class RemoteNode:
|
||||
if which == "selected":
|
||||
keyfiles = render(keyfiles, "available")
|
||||
|
||||
if which == "authorized":
|
||||
keyfiles = render(keyfiles, "selected")
|
||||
|
||||
if which == "used":
|
||||
if which == "authorized" or which == "used":
|
||||
keyfiles = render(keyfiles, "selected")
|
||||
|
||||
stringified_keyfiles = list(map(lambda t: label(t[0], True) + str(t[1]), enumerate(keyfiles)))
|
||||
|
||||
Reference in New Issue
Block a user