[Trivial fix]Remove unnecessary slash
This is to remove the unncessary slash when the line doesn't exceed the length of 79, to make the code more readable. Change-Id: I4b82895649faf54596215ec7aa697be071af1bfb
This commit is contained in:
parent
e5b819fb75
commit
acc6c52a81
@ -232,8 +232,7 @@ def _nova_to_osvif_network(network):
|
||||
if network.get_meta("multi_host") is not None:
|
||||
netobj.multi_host = network.get_meta("multi_host")
|
||||
if network.get_meta("should_create_bridge") is not None:
|
||||
netobj.should_provide_bridge = \
|
||||
network.get_meta("should_create_bridge")
|
||||
netobj.should_provide_bridge = network.get_meta("should_create_bridge")
|
||||
if network.get_meta("should_create_vlan") is not None:
|
||||
netobj.should_provide_vlan = network.get_meta("should_create_vlan")
|
||||
if network.get_meta("vlan") is None:
|
||||
|
@ -77,8 +77,7 @@ class MemcachedDriver(base.Driver):
|
||||
|
||||
if updated_time_in_mc:
|
||||
# Change mc time to offset-aware time
|
||||
updated_time_in_mc = \
|
||||
updated_time_in_mc.replace(tzinfo=iso8601.UTC)
|
||||
updated_time_in_mc = updated_time_in_mc.replace(tzinfo=iso8601.UTC)
|
||||
# If [DEFAULT]/enable_new_services is set to be false, the
|
||||
# ``updated_time_in_db`` will be None, in this case, use
|
||||
# ``updated_time_in_mc`` instead.
|
||||
|
@ -7140,8 +7140,7 @@ class LibvirtDriver(driver.ComputeDriver):
|
||||
available_least = disk_free_gb * units.Gi - disk_over_committed
|
||||
data['disk_available_least'] = available_least / units.Gi
|
||||
|
||||
data['pci_passthrough_devices'] = \
|
||||
self._get_pci_passthrough_devices()
|
||||
data['pci_passthrough_devices'] = self._get_pci_passthrough_devices()
|
||||
|
||||
numa_topology = self._get_host_numa_topology()
|
||||
if numa_topology:
|
||||
@ -7253,8 +7252,7 @@ class LibvirtDriver(driver.ComputeDriver):
|
||||
if disk_over_commit is not None:
|
||||
data.disk_over_commit = disk_over_commit
|
||||
data.disk_available_mb = disk_available_mb
|
||||
data.dst_wants_file_backed_memory = \
|
||||
CONF.libvirt.file_backed_memory > 0
|
||||
data.dst_wants_file_backed_memory = CONF.libvirt.file_backed_memory > 0
|
||||
data.file_backed_memory_discard = (CONF.libvirt.file_backed_memory and
|
||||
self._host.has_min_version(MIN_LIBVIRT_FILE_BACKED_DISCARD_VERSION,
|
||||
MIN_QEMU_FILE_BACKED_DISCARD_VERSION))
|
||||
|
Loading…
Reference in New Issue
Block a user