panctl: Don't duplicate the commands in a list.

The commands are already stored in a dictionary holding the command and
their respective help message.
This commit is contained in:
Damir Jelić 2019-07-03 17:42:48 +02:00
parent 758ca1fd85
commit a5e1c59931

View File

@ -369,23 +369,7 @@ class PanCtl:
),
}
commands = [
"help",
"list-servers",
"list-devices",
"export-keys",
"import-keys",
"verify-device",
"unverify-device",
"blacklist-device",
"unblacklist-device",
"start-verification",
"cancel-verification",
"accept-verification",
"confirm-verification",
"send-anyways",
"cancel-sending",
]
commands = list(command_help.keys())
def __attrs_post_init__(self):
self.bus = SessionBus()