Remove unused function fake_execute2

Bug #1286742 reported by zhang chun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Wishlist
Mike Perez

Bug Description

diff --git a/cinder/tests/brick/test_brick_linuxscsi.py b/cinder/tests/brick/test_brick_linuxscsi.py
index 47b73dc..e0ec010 100644
--- a/cinder/tests/brick/test_brick_linuxscsi.py
+++ b/cinder/tests/brick/test_brick_linuxscsi.py
@@ -101,15 +101,6 @@ class LinuxSCSITestCase(test.TestCase):
                    )
             return out, None

- def fake_execute2(*cmd, **kwargs):
- out = ("350002ac20398383d dm-3 3PARdata,VV\n"
- "size=2.0G features='0' hwhandler='0' wp=rw\n"
- "`-+- policy='round-robin 0' prio=-1 status=active\n"
- " |- 0:0:0:1 sde 8:64 active undef running\n"
- " `- 2:0:0:1 sdf 8:80 active undef running\n"
- )
- return out, None
-
         self.stubs.Set(self.linuxscsi, '_execute', fake_execute)

         info = self.linuxscsi.find_multipath_device('/dev/sde')

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/77415

Changed in cinder:
assignee: nobody → zhang chun (zhang-chun-os)
status: New → In Progress
Mike Perez (thingee)
Changed in cinder:
assignee: zhang chun (zhang-chun-os) → Mike Perez (thingee)
Mike Perez (thingee)
Changed in cinder:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/112661

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/112661
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=5c1d0a6246cbd3f05f6c41e7cfc7046fa3431726
Submitter: Jenkins
Branch: master

commit 5c1d0a6246cbd3f05f6c41e7cfc7046fa3431726
Author: Wu Wenxiang <wu.wenxiang@99cloud.net>
Date: Sun Mar 2 22:20:49 2014 +0800

    General cleanup of unused objects

    * Remove unused function fake_get_remote_image_service
    * Remove unused local function fake_execute2
    * stub_out_key_pair_funcs() does nothing, remove it.
    * Removed usage of enumerate()

    Closes-Bug: #1286714
    Closes-Bug: #1286712
    Closes-Bug: #1286742
    Closes-Bug: #1286809
    Change-Id: I76413c886f6903df2adcf4a4ceb8990486a2ff2f

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.