libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolaos Kakouros (JIRA)" <>
Subject [jira] [Created] (LIBCLOUD-927) Documentation is lacking for "network" argument in gce_create_route
Date Sat, 24 Jun 2017 21:05:00 GMT
Nikolaos Kakouros created LIBCLOUD-927:

             Summary: Documentation is lacking for "network" argument in gce_create_route
                 Key: LIBCLOUD-927
             Project: Libcloud
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 0.13.3
         Environment: Irrelevant
            Reporter: Nikolaos Kakouros
            Priority: Trivial

_(This affects the latest version on github, I am not sure what is going on with versions
in Jira)_
Current documentation of ex_create_route() says:

{{        :param  network: The network the route belongs to. Can be either the
                         full URL of the network or a libcloud object.}}

However, from the relevant code in function it is obvious that a network name is also valid:

        if isinstance(network, str) and network.startswith('https://'):
            network_uri = network
        elif isinstance(network, str):
            network = self.ex_get_network(network)
            network_uri = network.extra['selfLink']
network_uri = network.extra['selfLink']

This option should be documented as well.

This message was sent by Atlassian JIRA

View raw message