← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1264829] Re: NameError: name 'port' is not defined

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1264829

Title:
  NameError: name 'port' is not defined

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Create Instance:

          if api.neutron.is_port_profiles_supported():
              net_id = context['network_id'][0]
              LOG.debug("Horizon->Create Port with %(netid)s %(profile_id)s",
                        {'netid': net_id, 'profile_id': context['profile_id']})
              try:
                  port = api.neutron.port_create(request, net_id,
                                                 policy_profile_id=
                                                 context['profile_id'])
              except Exception:
                  msg = (_('Port not created for profile-id (%s).') %
                         context['profile_id'])
                  exceptions.handle(request, msg)
              if port and port.id:
                  nics = [{"port-id": port.id}]

  if error raised during  api.neutron.port_create calling, NameError
  would met at "if port and port.id"

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1264829/+subscriptions


References