diff options
| author | William Wolf <throughnothing@gmail.com> | 2011-06-13 08:53:34 -0400 |
|---|---|---|
| committer | William Wolf <throughnothing@gmail.com> | 2011-06-13 08:53:34 -0400 |
| commit | bd31a85575ce53dfa80f414dd359b3bdb2855292 (patch) | |
| tree | 6267bf933c9c5f6920ef37bc9c91fb96c0cf8b0f /nova/api | |
| parent | cbaa94ac255cde729bae3257da6657a114755224 (diff) | |
| download | nova-bd31a85575ce53dfa80f414dd359b3bdb2855292.tar.gz nova-bd31a85575ce53dfa80f414dd359b3bdb2855292.tar.xz nova-bd31a85575ce53dfa80f414dd359b3bdb2855292.zip | |
check for none and empty string, this way empty dicts/lists will be ok
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/server_metadata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/server_metadata.py b/nova/api/openstack/server_metadata.py index c17d77d46..57666f6b7 100644 --- a/nova/api/openstack/server_metadata.py +++ b/nova/api/openstack/server_metadata.py @@ -38,7 +38,7 @@ class Controller(object): return dict(metadata=meta_dict) def _check_body(self, body): - if not body: + if body == None or body == "": expl = _('No Request Body') raise exc.HTTPBadRequest(explanation=expl) |
