~james-page/charms/precise/cinder/whitelist-blocks

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/storage/linux/utils.py

  • Committer: James Page
  • Date: 2014-03-20 13:42:57 UTC
  • Revision ID: james.page@canonical.com-20140320134257-7xccdbkwzuw076i6
Resynced helpers

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
    :param block_device: str: Full path of block device to clean.
24
24
    '''
25
 
    check_call(['sgdisk', '--zap-all', '--mbrtogpt', block_device])
 
25
    check_call(['sgdisk', '--zap-all', '--clear',
 
26
                '--mbrtogpt', block_device])