Repartition and resize disk when marked as managed.
Implements part of the instance-disk-management blueprint. Change-Id: I16d0f816cdf82ee1e19a323cb9976477924e4c5c
This commit is contained in:
parent
49eff2ef0d
commit
7c83b754dc
@ -152,6 +152,8 @@ def execute(*cmd, **kwargs):
|
||||
delay_on_retry = kwargs.pop('delay_on_retry', True)
|
||||
attempts = kwargs.pop('attempts', 1)
|
||||
run_as_root = kwargs.pop('run_as_root', False)
|
||||
shell = kwargs.pop('shell', False)
|
||||
|
||||
if len(kwargs):
|
||||
raise exception.Error(_('Got unknown keyword args '
|
||||
'to utils.execute: %r') % kwargs)
|
||||
@ -169,7 +171,8 @@ def execute(*cmd, **kwargs):
|
||||
stdin=_PIPE,
|
||||
stdout=_PIPE,
|
||||
stderr=_PIPE,
|
||||
close_fds=True)
|
||||
close_fds=True,
|
||||
shell=shell)
|
||||
result = None
|
||||
if process_input is not None:
|
||||
result = obj.communicate(process_input)
|
||||
|
Loading…
x
Reference in New Issue
Block a user