diff --git a/glances/actions.py b/glances/actions.py index 0674eb2d885a3240a81e8fbb3b795c5e46ff8b80..ea94a8166ca0ddaa44767228e25b84b3b834cf1e 100644 --- a/glances/actions.py +++ b/glances/actions.py @@ -2,7 +2,7 @@ # # This file is part of Glances. # -# Copyright (C) 2019 Nicolargo +# Copyright (C) 2021 Nicolargo # # Glances is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by @@ -94,10 +94,10 @@ class GlancesActions(object): logger.info("Action triggered for {} ({}): {}".format(stat_name, criticity, cmd_full)) - logger.debug("Stats value for the trigger: {}".format( - mustache_dict)) + logger.debug("Action will be executed with the following command: \ + subprocess.Popen({}, shell=False)".format(cmd_full.split(' '))) try: - Popen(cmd_full, shell=True) + Popen(cmd_full.split(' '), shell=False) except OSError as e: logger.error("Can't execute the action ({})".format(e))