You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but i got the problem :
response, body = wrapper.get_fsid(body = 'json')
AttributeError: 'CephWrapper' object has no attribute 'get_fsid'
there is not attribute 'get_fsid',what is the problem?
The text was updated successfully, but these errors were encountered:
The names of the calls have changed since this commit c036013#diff-9c930d9fad412c650eb421b00977c1ac
So your call should look like this response, body = wrapper.sid(body = 'json')
and you have to import a json lib
from cephclient.wrapper import *
import json
wrapper = CephWrapper(
endpoint = 'http://127.0.0.1:5000/api/v0.1/',
debug = True # Optionally increases the verbosity of the client
)
response, body = wrapper.fsid(body = 'json')
print('Response: {0}, Body:\n{1}'.format(response, json.dumps(body, indent=4, separators=(',', ': '))))
i follow you guide,pip install python-cephclient,and write the code:
from cephclient.wrapper import *
wrapper = CephWrapper(
endpoint = 'http://127.0.0.1:5000/api/v0.1/',
debug = True
)
response, body = wrapper.get_fsid(body = 'json')
but i got the problem :
response, body = wrapper.get_fsid(body = 'json')
AttributeError: 'CephWrapper' object has no attribute 'get_fsid'
there is not attribute 'get_fsid',what is the problem?
The text was updated successfully, but these errors were encountered: