Jason DeTiberus created LIBCLOUD-699:
----------------------------------------
Summary: GCE Compute driver cannot accept ex_nic_gce_struct for
create_node
Key: LIBCLOUD-699
URL: https://issues.apache.org/jira/browse/LIBCLOUD-699
Project: Libcloud
Issue Type: Bug
Components: Compute
Reporter: Jason DeTiberus
If you specify the {{ex_nic_gce_struct}} param for the {{create_node}} or
{{ex_create_multiple_nodes}}
Any value other than {{None}} and the test for {{if network and
ex_nic_gce_struct:}} in {{_create_node_req}} fails due to network having a
default value of 'default'.
As a workaround I tried to set network to '', since that would have caused it
to pass the comparison test, however that leads to an error from the following
snippet:
{code}
if not hasattr(ex_network, 'name'):
ex_network = self.ex_get_network(ex_network)
{code}
Which returns with the following error:
{code}
error: {'locationType': 'parameter', 'domain': 'global', 'message': "Invalid
value 'None'. Values must match the following regular expression:
'[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?'", 'reason': 'invalidParameter', 'location':
'network'}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)