From e0003815aa519a039a04f0dc5bb645672a013196 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 15 Mar 2012 23:41:27 -0700 Subject: [PATCH] Fixing command to execute for volume support --- devstack/components/nova.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devstack/components/nova.py b/devstack/components/nova.py index ecf274db..84eb3297 100644 --- a/devstack/components/nova.py +++ b/devstack/components/nova.py @@ -497,9 +497,9 @@ class NovaVolumeConfigurator(object): # logical volumes self._process_lvs(mp) # Finish off by restarting tgt, and ignore any errors - iscsi_restart = self.distro.get_command('iscsi', 'restart', quiet=True) - if iscsi_restart: - utils.execute_template(*iscsi_restart, run_as_root=True, check_exit_code=False) + cmdrestart = self.distro.get_command('iscsi', 'restart', quiet=True) + if cmdrestart: + sh.execute(*cmdrestart, run_as_root=True, check_exit_code=False) def _process_lvs(self, mp): LOG.info("Attempting to setup logical volumes for nova volume management.")