Completed
Pull Request — master (#415)
by Anthony
02:06
created

GetIPV6AddressAction.run()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 4
rs 10
1
from lib import actions
2
from time import sleep
0 ignored issues
show
Unused Code introduced by
Unused sleep imported from time
Loading history...
3
4
__all__ = [
5
    'GetIPV6AddressAction',
6
]
7
8
9
class GetIPV6AddressAction(actions.BaseAction):
10
11
    def run(self, region, id):
0 ignored issues
show
Bug Best Practice introduced by
This seems to re-define the built-in id.

It is generally discouraged to redefine built-ins as this makes code very hard to read.

Loading history...
12
        driver = self._get_compute_driver(region)
13
        node = driver.ex_get_node_by_id(id)
14
        return node.extra['ipv6']
15