Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jlongstaf committed Jun 5, 2018
1 parent c2e6164 commit f4f839b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions f5lbaasdriver/v2/bigip/plugin_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ def create_port_on_subnet(self, context, subnet_id=None,
if device_id:
port_data['device_id'] = device_id
else:
port_data['device_id'] = str(uuid.uuid5(uuid.NAMESPACE_DNS, str(host)))
port_data['device_id'] = str(uuid.uuid5(
uuid.NAMESPACE_DNS, str(host)))
port_data[portbindings.HOST_ID] = host
port_data[portbindings.VNIC_TYPE] = vnic_type
port_data[portbindings.PROFILE] = binding_profile
Expand Down Expand Up @@ -705,7 +706,8 @@ def create_port_on_network(self, context, network_id=None,
if device_id:
port_data['device_id'] = device_id
else:
port_data['device_id'] = str(uuid.uuid5(uuid.NAMESPACE_DNS, str(host)))
port_data['device_id'] = str(uuid.uuid5(
uuid.NAMESPACE_DNS, str(host)))
port_data[portbindings.HOST_ID] = host
port_data[portbindings.VNIC_TYPE] = vnic_type
port_data[portbindings.PROFILE] = binding_profile
Expand Down

0 comments on commit f4f839b

Please sign in to comment.