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

Jeff Moody commented on LIBCLOUD-550:
-------------------------------------

Patch:

diff --git a/libcloud/compute/drivers/cloudstack.py 
b/libcloud/compute/drivers/cloudstack.py
index c7f63e8..cd0cc3e 100644
--- a/libcloud/compute/drivers/cloudstack.py
+++ b/libcloud/compute/drivers/cloudstack.py
@@ -700,9 +700,6 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, 
NodeDriver):
                                         the node
         :type       ex_security_groups: ``list`` of ``str``
 
-        :keyword    ex_displayname: String containing instance display name
-        :type       ex_displayname: ``str``
-
         :rtype:     :class:`.CloudStackNode`
         """
 
@@ -730,17 +727,10 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, 
NodeDriver):
         ex_key_name = kwargs.get('ex_keyname', None)
         ex_user_data = kwargs.get('ex_userdata', None)
         ex_security_groups = kwargs.get('ex_security_groups', None)
-        ex_displayname = kwargs.get('ex_displayname', None)
 
         if name:
             server_params['name'] = name
 
-        if name is None:
-            del server_params['name']
-
-        if ex_displayname:
-            server_params['displayname'] = ex_displayname
-
         if size:
             server_params['serviceofferingid'] = size.id
 


> Add support for CloudStack deployVirtualMachine displayname parameter
> ---------------------------------------------------------------------
>
>                 Key: LIBCLOUD-550
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-550
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Compute
>    Affects Versions: 0.14.0-beta3
>            Reporter: Jeff Moody
>            Priority: Trivial
>              Labels: easy, easyfix, patch
>             Fix For: 0.14.0-beta3
>
>         Attachments: cloudstack-display-name.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Add support for the displayname API parameter and modify the name API 
> parameter to allow for instances to be created without that parameter being 
> set.
> This is the behavior we expect when provisioning instances in a multi-tenant 
> Public flat-network Cloud to prevent customers from encountering instance 
> name conflicts.



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

Reply via email to