diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2017-12-16 09:38:55 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-12-18 16:46:05 +0000 |
commit | de3468e120d489d046c08dad72ba2262e222ccb1 (patch) | |
tree | 8956f751c460baf23f95b5bfd9a441bd71d8f5dd /cmd/kpod/spec.go | |
parent | f2f9fdf12674623dd0d38b32408083cccdad5e66 (diff) | |
download | podman-de3468e120d489d046c08dad72ba2262e222ccb1.tar.gz podman-de3468e120d489d046c08dad72ba2262e222ccb1.tar.bz2 podman-de3468e120d489d046c08dad72ba2262e222ccb1.zip |
CleanUp problems found my make lint.
Remove or comment out unused functions.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #145
Approved by: umohnani8
Diffstat (limited to 'cmd/kpod/spec.go')
-rw-r--r-- | cmd/kpod/spec.go | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cmd/kpod/spec.go b/cmd/kpod/spec.go index 29ed8d40f..adfdf7347 100644 --- a/cmd/kpod/spec.go +++ b/cmd/kpod/spec.go @@ -211,26 +211,26 @@ func createConfigToOCISpec(config *createConfig) (*spec.Spec, error) { // RESOURCES - CPU - if config.Resources.CpuShares != 0 { - g.SetLinuxResourcesCPUShares(config.Resources.CpuShares) + if config.Resources.CPUShares != 0 { + g.SetLinuxResourcesCPUShares(config.Resources.CPUShares) } - if config.Resources.CpuQuota != 0 { - g.SetLinuxResourcesCPUQuota(config.Resources.CpuQuota) + if config.Resources.CPUQuota != 0 { + g.SetLinuxResourcesCPUQuota(config.Resources.CPUQuota) } - if config.Resources.CpuPeriod != 0 { - g.SetLinuxResourcesCPUPeriod(config.Resources.CpuPeriod) + if config.Resources.CPUPeriod != 0 { + g.SetLinuxResourcesCPUPeriod(config.Resources.CPUPeriod) } - if config.Resources.CpuRtRuntime != 0 { - g.SetLinuxResourcesCPURealtimeRuntime(config.Resources.CpuRtRuntime) + if config.Resources.CPURtRuntime != 0 { + g.SetLinuxResourcesCPURealtimeRuntime(config.Resources.CPURtRuntime) } - if config.Resources.CpuRtPeriod != 0 { - g.SetLinuxResourcesCPURealtimePeriod(config.Resources.CpuRtPeriod) + if config.Resources.CPURtPeriod != 0 { + g.SetLinuxResourcesCPURealtimePeriod(config.Resources.CPURtPeriod) } - if config.Resources.Cpus != "" { - g.SetLinuxResourcesCPUCpus(config.Resources.Cpus) + if config.Resources.CPUs != "" { + g.SetLinuxResourcesCPUCpus(config.Resources.CPUs) } - if config.Resources.CpusetMems != "" { - g.SetLinuxResourcesCPUMems(config.Resources.CpusetMems) + if config.Resources.CPUsetMems != "" { + g.SetLinuxResourcesCPUMems(config.Resources.CPUsetMems) } // SECURITY OPTS |