We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5fd915 commit bdf2d18Copy full SHA for bdf2d18
scfw/configure/dd_agent.py
@@ -53,7 +53,11 @@ def remove_agent_logging():
53
Raises:
54
RuntimeError: An error occurred while attempting to remove the configuration directory.
55
"""
56
- scfw_config_dir = _dd_agent_scfw_config_dir()
+ try:
57
+ scfw_config_dir = _dd_agent_scfw_config_dir()
58
+ except FileNotFoundError:
59
+ _log.info("Datadog Agent binary is not available; no configuration to remove")
60
+ return
61
62
if not scfw_config_dir.is_dir():
63
_log.info("No Datadog Agent configuration directory to remove")
0 commit comments