Skip to content

Commit

Permalink
Fix syntax error in nvplib
Browse files Browse the repository at this point in the history
Bug 1083379

Change-Id: I906be569b72506df5729e547407a204739c36305
  • Loading branch information
salv-orlando committed Nov 27, 2012
1 parent cca84fd commit 7f90000
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py
Expand Up @@ -192,8 +192,8 @@ def create_lswitch(cluster, lswitch_obj):
return d


def update_network(cluster, switch, **params):
uri = "/ws.v1/lswitch/" + switch
def update_network(cluster, lswitch_id, **params):
uri = "/ws.v1/lswitch/" + lswitch_id
lswitch_obj = {}
if params["network"]["name"]:
lswitch_obj["display_name"] = params["network"]["name"]
Expand All @@ -202,7 +202,7 @@ def update_network(cluster, switch, **params):
cluster=cluster)
except NvpApiClient.ResourceNotFound as e:
LOG.error("Network not found, Error: %s" % str(e))
raise exception.NetworkNotFound(net_id=network)
raise exception.NetworkNotFound(net_id=lswitch_id)
except NvpApiClient.NvpApiException as e:
raise exception.QuantumException()

Expand Down

0 comments on commit 7f90000

Please sign in to comment.