Skip to content

Commit d30f408

Browse files
committed
Fix logic in SRV_CUSTOM
1 parent cd2d05f commit d30f408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyinfra/operations/freebsd/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def service(
106106
elif state == ServiceStates.SRV_CUSTOM:
107107
args.append(QuoteString(srvname))
108108

109-
if not isinstance(command, str):
109+
if isinstance(command, str):
110110
command = [command]
111111

112112
args.extend((QuoteString(c) for c in command))

0 commit comments

Comments
 (0)