From 904acb914a1723602ace956ca05951f069ba5059 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 30 May 2015 21:15:37 -0400 Subject: [PATCH] Amazon EC2 - Fixing how the Monitoring.Enabled field is set for spot requests Signed-off-by: Dave Henderson --- drivers/amazonec2/amz/ec2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/amazonec2/amz/ec2.go b/drivers/amazonec2/amz/ec2.go index 53e1520ba6..459671086b 100644 --- a/drivers/amazonec2/amz/ec2.go +++ b/drivers/amazonec2/amz/ec2.go @@ -248,9 +248,9 @@ func (e *EC2) RequestSpotInstances(amiId string, instanceType string, zone strin v.Set("LaunchSpecification.NetworkInterface.0.SubnetId", subnetId) v.Set("LaunchSpecification.NetworkInterface.0.AssociatePublicIpAddress", "1") if monitoring { - v.Set("Monitoring.Enabled", "1") + v.Set("LaunchSpecification.Monitoring.Enabled", "1") } else { - v.Set("Monitoring.Enabled", "0") + v.Set("LaunchSpecification.Monitoring.Enabled", "0") } if len(role) > 0 {