import types
import uuid
+# just a couple of globals
+
verbose = False
+cluster = None
class ArgumentError(Exception):
"""
Pool name; checked for presence in cluster
"""
def valid(self, s, partial=False):
- global cluster
if cluster.pool.exists(s):
raise ArgumentValid("pool {0} does not exist".format(s))
self.val = s
If target is osd.N, send command to that osd (except for pgid cmds)
"""
- global cluster
- global verbose
cmddict = {}
if prefix:
cmddict.update({'prefix':prefix})
###
def main():
- global cluster
parsed_args, childargs = parse_cmdargs(first=False)
- global verbose
verbose = parsed_args.verbose
# pass on --id, --name, -k, -c