Skip to content

Commit

Permalink
ceph-volume: look for hidden partitions when populating lvs
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
  • Loading branch information
mogeb committed Apr 12, 2019
1 parent 3e585b0 commit 463091e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ceph-volume/ceph_volume/api/lvm.py
Expand Up @@ -306,14 +306,14 @@ def get_api_lvs():
Command and delimited output should look like::
$ lvs --noheadings --readonly --separator=';' -o lv_tags,lv_path,lv_name,vg_name
$ lvs --noheadings --readonly --separator=';' -a -o lv_tags,lv_path,lv_name,vg_name
;/dev/ubuntubox-vg/root;root;ubuntubox-vg
;/dev/ubuntubox-vg/swap_1;swap_1;ubuntubox-vg
"""
fields = 'lv_tags,lv_path,lv_name,vg_name,lv_uuid,lv_size'
stdout, stderr, returncode = process.call(
['lvs', '--noheadings', '--readonly', '--separator=";"', '-o', fields],
['lvs', '--noheadings', '--readonly', '--separator=";"', '-a', '-o', fields],
verbose_on_failure=False
)
return _output_parser(stdout, fields)
Expand Down

0 comments on commit 463091e

Please sign in to comment.