Skip to content

Commit 7bce9ed

Browse files
committed
Softens detection of missing D-Bus methods in service package.
1 parent 817efb1 commit 7bce9ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/agentconf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (s *systemdServiceManager) WriteSystemdAgents(
203203
// If this happens, then D-Bus will error with the message below.
204204
// We need to detect this condition and fall through to linking the
205205
// service files manually.
206-
if strings.Contains(err.Error(), "No such method 'LinkUnitFiles'") {
206+
if strings.Contains(strings.ToLower(err.Error()), "no such method") {
207207
dbusMethodFound = false
208208
logger.Infof("attempting to manually link service file for %s", agentName)
209209
} else {

0 commit comments

Comments
 (0)