remove "cpc" and "instance" parameter
remove "cpc" and "instance" parameter from "def get_partition(self, cpc, instance): https://github.com/openstack/nova-dpm/blob/ master/nova_dpm/virt/dpm/vm.py#L316 1. cpc - No need to pass cpc parameter. we can use self.cpc parameter inside the function. 2. instance - we are not using instance parameter anywhere. Closes-Bug: #1658887 Change-Id: I3207c06536a0bfa7c0f658985b9fb3184c7e2043 Signed-off-by: Prabhat Ranjan <pranjank@in.ibm.com>
This commit is contained in:
parent
bf01b6dd7c
commit
886fa3ae00
|
@ -111,7 +111,7 @@ class PartitionInstance(object):
|
|||
self.flavor = flavor
|
||||
self.cpc = cpc
|
||||
self.client = client
|
||||
self.partition = self.get_partition(self.cpc, self.instance)
|
||||
self.partition = self.get_partition()
|
||||
|
||||
@property
|
||||
def partition_name(self):
|
||||
|
@ -313,9 +313,9 @@ class PartitionInstance(object):
|
|||
bootProperties = {'boot-device': 'test-operating-system'}
|
||||
return bootProperties
|
||||
|
||||
def get_partition(self, cpc, instance):
|
||||
def get_partition(self):
|
||||
partition = None
|
||||
partition_manager = cpc.partitions
|
||||
partition_manager = self.cpc.partitions
|
||||
partition_lists = partition_manager.list(
|
||||
full_properties=False)
|
||||
for part in partition_lists:
|
||||
|
|
Loading…
Reference in New Issue