Commit 4bb08af3 authored by Hani Benhabiles's avatar Hani Benhabiles Committed by Luiz Capitulino

monitor: Remove hardcoded watchdog event names

Signed-off-by: default avatarHani Benhabiles <hani@linux.com>
Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
parent 08ab5977
......@@ -4521,16 +4521,15 @@ void netdev_del_completion(ReadLineState *rs, int nb_args, const char *str)
void watchdog_action_completion(ReadLineState *rs, int nb_args, const char *str)
{
int i;
if (nb_args != 2) {
return;
}
readline_set_completion_index(rs, strlen(str));
add_completion_option(rs, str, "reset");
add_completion_option(rs, str, "shutdown");
add_completion_option(rs, str, "poweroff");
add_completion_option(rs, str, "pause");
add_completion_option(rs, str, "debug");
add_completion_option(rs, str, "none");
for (i = 0; WatchdogExpirationAction_lookup[i]; i++) {
add_completion_option(rs, str, WatchdogExpirationAction_lookup[i]);
}
}
void migrate_set_capability_completion(ReadLineState *rs, int nb_args,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment