From 7c83b754dc6dc2a181d43a8dce6f3ee874009dcb Mon Sep 17 00:00:00 2001 From: Rick Harris Date: Mon, 17 Oct 2011 16:01:46 +0000 Subject: [PATCH] Repartition and resize disk when marked as managed. Implements part of the instance-disk-management blueprint. Change-Id: I16d0f816cdf82ee1e19a323cb9976477924e4c5c --- nova/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nova/utils.py b/nova/utils.py index d9c378f5e..7d34a87d8 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -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)