3 # Copyright (C) 2015 <contact@redhat.com>
4 # Copyright (C) 2015 SUSE LINUX GmbH
6 # Author: Alfredo Deza <alfredo.deza@inktank.com>
7 # Author: Owen Synge <osynge@suse.com>
8 # Author: Loic Dachary <loic@dachary.org>
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU Library Public License as published by
12 # the Free Software Foundation; either version 2, or (at your option)
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Library Public License for more details.
23 import ceph_detect_init
24 from ceph_detect_init import exc
28 parser = argparse.ArgumentParser(
49 def run(argv=None, namespace=None):
50 args = parser().parse_args(argv, namespace)
53 logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s',
56 print(ceph_detect_init.get(args.use_rhceph).init)
57 except exc.UnsupportedPlatform: