Skip to content

Commit 4458411

Browse files
committed
implement no-op uninstall for macos
1 parent d96d233 commit 4458411

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

components/datadog/agent/host_macos.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ func (am *agentMacOSManager) restartAgentServices(transform command.Transformer,
6969
}
7070
return am.host.OS.Runner().Command(cmdName, cmdArgs, opts...)
7171
}
72+
73+
func (am *agentMacOSManager) ensureAgentUninstalled(version agentparams.PackageVersion, opts ...pulumi.ResourceOption) (command.Command, error) {
74+
// No-op the install script should support installing again when the agent is already installed
75+
return am.host.OS.Runner().Command("no-op-uninstall-agent", &command.Args{
76+
Create: pulumi.String("true"),
77+
}, opts...)
78+
}

0 commit comments

Comments
 (0)