

def setup(self, api_version=2):
    from ceilometerclient import client
    (options, args) = self.ceilometer.parser.parse_known_args(self.base_argv)
    if options.help:
        options.command = None
        self.do_help(options)
        sys.exit(2)
    client_kwargs = vars(options)
    return (options, client.get_client(api_version, **client_kwargs))

dataset/ETHPy150Open openstack/monitoring-for-openstack/oschecks/utils.py Ceilometer.setup/original