client: Set exit status on agent reg. failure

This commit is contained in:
Tim Kourt 2019-08-30 16:46:12 -07:00 committed by Denis Kenzior
parent 6c64016402
commit 589f6182b5
1 changed files with 5 additions and 0 deletions

View File

@ -705,6 +705,11 @@ static void get_managed_objects_callback(struct l_dbus_message *message,
proxy_interface_create(path, &object);
if (!agent_manager_register_agent()) {
display_error("Failed to register Agent.\n");
if (!command_is_interactive_mode())
command_set_exit_status(EXIT_FAILURE);
l_main_quit();
return;