Commit dd96aabc authored by Sigmund Augdal's avatar Sigmund Augdal

Fix passing boolean values to odata query

parent 0f75f721
...@@ -47,6 +47,11 @@ def is_string(value): ...@@ -47,6 +47,11 @@ def is_string(value):
def type_encode_argvalue(value): def type_encode_argvalue(value):
if type(value) == uuid.UUID: if type(value) == uuid.UUID:
return "guid'{}'".format(value) return "guid'{}'".format(value)
if type(value) == bool:
if value:
return "true"
else:
return "false"
if is_string(value): if is_string(value):
return "'{}'".format(value) return "'{}'".format(value)
return value return value
......
...@@ -8,7 +8,7 @@ requires = [ ...@@ -8,7 +8,7 @@ requires = [
] ]
setup(name='scvmm-client-py', setup(name='scvmm-client-py',
version='0.6', version='0.7',
description='', description='',
author='', author='',
author_email='', author_email='',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment