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
3
__all__ = [
4
    'GetIPV6AddressAction',
5
]
6
7
8
class GetIPV6AddressAction(actions.BaseAction):
9
10
    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...
11
        driver = self._get_compute_driver(region)
12
        node = driver.ex_get_node_by_id(id)
13
        return node.extra['ipv6']
14