From d23ac6679ca037ec052c4865fe38241f698875d9 Mon Sep 17 00:00:00 2001 From: chshou Date: Thu, 8 Feb 2018 14:20:35 -0800 Subject: [PATCH] append args (#89) LGTM. --- providers/azure/aci.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/azure/aci.go b/providers/azure/aci.go index 62df9faf7..d0a5bb999 100644 --- a/providers/azure/aci.go +++ b/providers/azure/aci.go @@ -396,7 +396,7 @@ func (p *ACIProvider) getContainers(pod *v1.Pod) ([]aci.Container, error) { Name: container.Name, ContainerProperties: aci.ContainerProperties{ Image: container.Image, - Command: container.Command, + Command: append(container.Command, container.Args...), Ports: make([]aci.ContainerPort, 0, len(container.Ports)), }, } @@ -475,7 +475,7 @@ func (p *ACIProvider) getVolumes(pod *v1.Pod) ([]aci.Volume, error) { // Handle the case for the EmptyDir. if v.EmptyDir != nil { volumes = append(volumes, aci.Volume{ - Name: v.Name, + Name: v.Name, EmptyDir: map[string]interface{}{}, }) continue