jkoelker/aiclib — pull request #26 by lmaycotte (2013-09-12 19:37:46+00:00)
Title: fix missing query attribute error

This will fix the add/remove fixed ip test errors,

======================================================================
ERROR: test_add_remove_fixed_ip_public (testrepo.networks.functional.fixed_ips.test_fixed_ips.TestFixedIPs)
Testing adding and removing a public fixed IP
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/add-remove-fixed-ips-preprod/lib/testrepo/networks/functional/fixed_ips/test_fixed_ips.py", line 111, in test_add_remove_fixed_ip_public
added_ip, find=True)
File "/var/lib/jenkins/workspace/add-remove-fixed-ips-preprod/lib/testrepo/networks/helper.py", line 613, in check_nvp_public_allowed_address_pairs
attachment_vif_mac=public_mac_address)
File "/var/lib/jenkins/workspace/add-remove-fixed-ips-preprod/lib/ccengine/clients/nvp/aic_nvp_api.py", line 45, in list_lswitch_ports
query = lports.query()
File "/var/lib/jenkins/workspace/add-remove-fixed-ips-preprod/.env/lib/python2.6/site-packages/aiclib-0.8-py2.6.egg/aiclib/nvpentity.py", line 674, in query
queryobject = nvpquery.LSwitchPortQuery(self.connection, uri)
File "/var/lib/jenkins/workspace/add-remove-fixed-ips-preprod/.env/lib/python2.6/site-packages/aiclib-0.8-py2.6.egg/aiclib/nvpquery.py", line 51, in __init__
super(NVPEntityQuery, self).__init__(aic_connection, resource)
File "/var/lib/jenkins/workspace/add-remove-fixed-ips-preprod/.env/lib/python2.6/site-packages/aiclib-0.8-py2.6.egg/aiclib/nvpquery.py", line 35, in __init__
self.query['fields'] = '*'
AttributeError: 'LSwitchPortQuery' object has no attribute 'query'