Skip to content

Commit

Permalink
Merge pull request #145 from ceph/gabriellasroman
Browse files Browse the repository at this point in the history
testing 'tab' vs 'space' indentation
  • Loading branch information
Alfredo Deza authored Sep 17, 2019
2 parents 0889163 + cd4ace5 commit 46f371a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ceph_medic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Medic(object):
--version, version Shows the current installed version
--inventory Prefer a ceph-ansible inventory (hosts) file instead of default
(cwd, /etc/ansible/hosts) locations
--verbosity Set verbosity level of logging output
{sub_help}
Expand Down Expand Up @@ -85,7 +86,7 @@ def configured_nodes(self):
def main(self, argv):
options = [
'--cluster', '--ssh-config', '--inventory',
'--config',
'--config', '--verbosity',
]
parser = Transport(
argv, options=options,
Expand Down Expand Up @@ -145,3 +146,9 @@ def main(self, argv):
parser.dispatch()
parser.catches_help()
parser.catches_version()

# Verbosity
verbosity = parser.get('--verbosity', 'debug')
ceph_medic.config.verbosity = verbosity.lowercase()

# testing 'tab' vs 'space' indentation

0 comments on commit 46f371a

Please sign in to comment.