Skip to content

Commit 0728392

Browse files
committed
Fix style
1 parent 421ff76 commit 0728392

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libcloud/compute/drivers/openstack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4457,7 +4457,7 @@ def __init__(self, id, hypervisor_hostname, vcpus, memory_mb, local_gb, service_
44574457
self.service_name = service_name
44584458

44594459
def __repr__(self):
4460-
return "<OpenStack_2_Host: id=%s, hypervisor_hostname=%s>" % (
4460+
return "<OpenStack_2_Host: id={}, hypervisor_hostname={}>".format(
44614461
self.id,
44624462
self.hypervisor_hostname,
44634463
)
@@ -4487,7 +4487,7 @@ def __init__(self, id, name, start, end, status, reservations, driver):
44874487
self.driver = driver
44884488

44894489
def __repr__(self):
4490-
return "<OpenStack_2_Lease: id=%s, name=%s, status=%s>" % (self.id, self.name, self.status)
4490+
return "<OpenStack_2_Lease: id={}, name={}, status={}>".format(self.id, self.name, self.status)
44914491

44924492

44934493
class OpenStack_1_1_FloatingIpPool:

0 commit comments

Comments
 (0)