You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/04/28 16:24:17 UTC

[jira] [Commented] (LIBCLOUD-544) Passing a dict of metadata to create_node method of GCE driver doesn't work.

    [ 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 <go...@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)