Skip to content

Commit

Permalink
Add a method to re-read the disklabel from disk.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwlehman committed Feb 1, 2016
1 parent 90b18e7 commit 50a74ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blivet/formats/disklabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ def dict(self):
"grain_size": self.get_alignment().grainSize})
return d

def update_parted_disk(self):
""" re-read the disklabel from the device """
self._parted_disk = None
self.update_orig_parted_disk()

def update_orig_parted_disk(self):
self._orig_parted_disk = self.parted_disk.duplicate()

Expand Down

0 comments on commit 50a74ce

Please sign in to comment.