Gris Ge
2014-04-20 11:21:15 UTC
Hi Guys,
I just found this script will fail:
====
#!/usr/bin/python2
import lsm
cli=lsm.Client('sim://')
pools =cli.pools()
cli.volume_create(
pool=pools[0], volume_name='abc', size_bytes=1024, provisioning=1,
flags=0)
====
with error:
====
Traceback (most recent call last):
File "test.py", line 7, in <module>
flags=0)
TypeError: inner() got an unexpected keyword argument 'pool'
====
It seems a bug at lsm/_common.py:
Proxy:_present()
Anyone have quick fix?
Thanks.
I just found this script will fail:
====
#!/usr/bin/python2
import lsm
cli=lsm.Client('sim://')
pools =cli.pools()
cli.volume_create(
pool=pools[0], volume_name='abc', size_bytes=1024, provisioning=1,
flags=0)
====
with error:
====
Traceback (most recent call last):
File "test.py", line 7, in <module>
flags=0)
TypeError: inner() got an unexpected keyword argument 'pool'
====
It seems a bug at lsm/_common.py:
Proxy:_present()
Anyone have quick fix?
Thanks.
--
Gris Ge
Gris Ge