Skip to content

Commit

Permalink
Missing optional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
David Moreau Simard committed Jan 18, 2014
1 parent f9086d9 commit 2a0eab8
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions cephclient/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,20 +259,28 @@ def pg_debug(self, debugop, **kwargs):
return self.get('pg/debug?debugop={0}'.format(debugop), kwargs)


def pg_dump(self, **kwargs):
return self.get('pg/dump', **kwargs)

def pg_dump(self, dumpcontents = None, **kwargs):
if dumpcontents is not None:
return self.get('pg/dump?dumpcontents={0}'.format(dumpcontents), **kwargs)
else:
return self.get('pg/dump', **kwargs)

def pg_dump_json(self, **kwargs):
return self.get('pg/dump_json', **kwargs)
def pg_dump_json(self, dumpcontents = None, **kwargs):
if dumpcontents is not None:
return self.get('pg/dump_json?dumpcontents={0}'.format(dumpcontents), **kwargs)
else:
return self.get('pg/dump_json', **kwargs)


def pg_dump_pools_json(self, **kwargs):
return self.get('pg/dump_pools_json', **kwargs)


def pg_dump_stuck(self, **kwargs):
return self.get('pg/dump_stuck', **kwargs)
def pg_dump_stuck(self, stuckops = None, **kwargs):
if stuckops is not None:
return self.get('pg/dump_stuck?stuckops={0}'.format(stuckops), **kwargs)
else:
return self.get('pg/dump_stuck', **kwargs)


def pg_getmap(self, **kwargs):
Expand Down

0 comments on commit 2a0eab8

Please sign in to comment.