diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-22 19:08:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 19:08:08 +0200 |
commit | b263dd9e81bcadd3be5c7420fca9e53ecc8aef7c (patch) | |
tree | a88e48dfe6c6893d793c2f35318907fe9418b1c4 /cmd/podman/generate.go | |
parent | 34002f92ffa2c71c3f5190b6b73617f14652d674 (diff) | |
parent | 56a65cffac2cee3132c950d49ea8a5b46eabbff1 (diff) | |
download | podman-b263dd9e81bcadd3be5c7420fca9e53ecc8aef7c.tar.gz podman-b263dd9e81bcadd3be5c7420fca9e53ecc8aef7c.tar.bz2 podman-b263dd9e81bcadd3be5c7420fca9e53ecc8aef7c.zip |
Merge pull request #3800 from vrothberg/generate-pod
generate systemd pod
Diffstat (limited to 'cmd/podman/generate.go')
-rw-r--r-- | cmd/podman/generate.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/generate.go b/cmd/podman/generate.go index 98bfb00a1..196556bc5 100644 --- a/cmd/podman/generate.go +++ b/cmd/podman/generate.go @@ -18,11 +18,14 @@ var ( // Commands that are universally implemented generateCommands = []*cobra.Command{ _containerKubeCommand, - _containerSystemdCommand, } ) func init() { + // Systemd-service generation is not supported for remote-clients. + if !remoteclient { + generateCommands = append(generateCommands, _containerSystemdCommand) + } generateCommand.Command = _generateCommand generateCommand.AddCommand(generateCommands...) generateCommand.SetUsageTemplate(UsageTemplate()) |