libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoosh <...@git.apache.org>
Subject [GitHub] libcloud pull request: fixing missing parameter exception for ex_a...
Date Sun, 18 Jan 2015 00:15:59 GMT
GitHub user pmoosh opened a pull request:

    https://github.com/apache/libcloud/pull/435

    fixing missing parameter exception for ex_add_access_config function

    Missing nic parameter throws exception in gce.ex_add_access_config
    ```
    stderr: Traceback (most recent call last):
      File "/Users/pmoosh/.ansible/tmp/ansible-tmp-1421538564.46-10999847043196/gce_setip.py",
line 139, in <module>
        main(sys.argv[1:])
      File "/Users/pmoosh/.ansible/tmp/ansible-tmp-1421538564.46-10999847043196/gce_setip.py",
line 128, in main
        gce.ex_add_access_config(node = my_instance, name = ACC_CNF_NM, nic = 'nic0', nat_ip
= item.address)
      File "/Users/pmoosh/src/apache-libcloud/libcloud/compute/drivers/gce.py", line 941,
in ex_add_access_config
        self.connection.async_request(request, method='POST', data=config)
      File "/Users/pmoosh/src/apache-libcloud/libcloud/common/base.py", line 866, in async_request
        response = request(**kwargs)
      File "/Users/pmoosh/src/apache-libcloud/libcloud/common/google.py", line 669, in request
        *args, **kwargs)
      File "/Users/pmoosh/src/apache-libcloud/libcloud/common/base.py", line 736, in request
        response = responseCls(**kwargs)
      File "/Users/pmoosh/src/apache-libcloud/libcloud/common/base.py", line 119, in __init__
        self.object = self.parse_body()
      File "/Users/pmoosh/src/apache-libcloud/libcloud/common/google.py", line 267, in parse_body
        raise InvalidRequestError(message, self.status, code)
    libcloud.common.google.InvalidRequestError: {'locationType': 'parameter', 'domain': 'global',
'message': 'Required parameter: networkInterface', 'reason': 'required', 'location': 'networkInterface'}
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pmoosh/libcloud trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/435.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #435
    
----
commit a9d20be56084150dfdbf23bed20f39249e8a66bf
Author: Peter Mooshammer <pmoosh@yahoo.com>
Date:   2015-01-18T00:08:37Z

    fixing missing parameter exception for ex_add_access_config function

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message