[lxc-devel] [nova-lxd/master] Remove unused code

rockstar on Github lxc-bot at linuxcontainers.org
Tue Feb 9 17:42:32 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 329 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160209/d166ae08/attachment.bin>
-------------- next part --------------
From 8e29f3c8c7ef7c85fcd2509841fa3f5dc07f9437 Mon Sep 17 00:00:00 2001
From: Paul Hummer <paul.hummer at canonical.com>
Date: Tue, 9 Feb 2016 10:41:53 -0700
Subject: [PATCH] Remove unused code

---
 nova_lxd/nova/virt/lxd/session.py | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/nova_lxd/nova/virt/lxd/session.py b/nova_lxd/nova/virt/lxd/session.py
index e6b6142..a9207e5 100644
--- a/nova_lxd/nova/virt/lxd/session.py
+++ b/nova_lxd/nova/virt/lxd/session.py
@@ -18,16 +18,13 @@
 from nova import exception
 from nova import i18n
 from nova import rpc
-from nova import utils
 from nova.compute import power_state
-from oslo_concurrency import processutils
 from oslo_config import cfg
 from oslo_log import log as logging
 from oslo_service import loopingcall
 from oslo_utils import excutils
 from pylxd import api
 from pylxd import exceptions as lxd_exceptions
-import six
 
 from nova_lxd.nova.virt.lxd import constants
 
@@ -40,25 +37,6 @@
 LOG = logging.getLogger(__name__)
 
 
-def mount_filesystem(self, dev_path, dir_path):
-    try:
-        _out, err = utils.execute('mount',
-                                  '-t', 'ext4',
-                                  dev_path, dir_path, run_as_root=True)
-    except processutils.ProcessExecutionError as e:
-        err = six.text_type(e)
-    return err
-
-
-def umount_filesystem(self, dir_path):
-    try:
-        _out, err = utils.execute('umount',
-                                  dir_path, run_as_root=True)
-    except processutils.ProcessExecutionError as e:
-        err = six.text_type(e)
-    return err
-
-
 class LXDAPISession(object):
     """The session to invoke the LXD API session."""
 


More information about the lxc-devel mailing list