Send float values even when they are 0

This commit is contained in:
Garrett Holmstrom
2016-03-21 14:42:29 -07:00
parent 6579df1e4a
commit 4f21f8bcf3

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2012-2015, Eucalyptus Systems, Inc.
# Copyright (c) 2012-2016 Hewlett Packard Enterprise Development LP
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
@@ -336,6 +336,8 @@ class AWSQueryRequest(BaseRequest):
flattened[prefixed_key] = str(val).lower()
elif isinstance(val, file):
flattened[prefixed_key] = val.read()
elif isinstance(val, float):
flattened[prefixed_key] = str(val)
elif val or val is 0:
flattened[prefixed_key] = str(val)
elif val is EMPTY: