libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-544) Passing a dict of metadata to create_node method of GCE driver doesn't work.
Date Mon, 28 Apr 2014 14:24:17 GMT

    [ https://issues.apache.org/jira/browse/LIBCLOUD-544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13983040#comment-13983040
] 

ASF GitHub Bot commented on LIBCLOUD-544:
-----------------------------------------

GitHub user zerthimon opened a pull request:

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

    [LIBCLOUD-544] GCE: fix adding node metadata at node creation

    Passing a simple metadata dict to create_node GCE driver method doesn't work.
    GCE api requires the following structure for metadata:
    metadata = {"items": [{"value": "val1", "key": "key1"}, {"value": "val2", "key": "key2"}]}
    
    This fix converts simple dict to what the API wants.

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

    $ git pull https://github.com/zerthimon/libcloud LIBCLOUD-544_metadata

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

    https://github.com/apache/libcloud/pull/283.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 #283
    
----
commit 1d7fa2983f660ca0cb4d48a9bf420322b8b872ba
Author: Lior Goikhburg <goikhburg@gmail.com>
Date:   2014-04-28T14:18:27Z

    [LIBCLOUD-544] GCE: fix adding node metadata at node creation

----


> Passing a dict of metadata to create_node method of GCE driver doesn't work.
> ----------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-544
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-544
>             Project: Libcloud
>          Issue Type: Bug
>            Reporter: Lior Goikhburg
>
> GCE requires metadata to be sent in the following way:
> metadata = {"items": [{"value": "val1", "key": "key1"}, {"value": "val2", "key": "key2"}]}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message