| Conditions | 3 | 
| Total Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| 1 | import requests | ||
| 8 | def run(self, node_ip, node_property=None, cluster_id=None): | ||
| 9 | if not cluster_id: | ||
| 10 | cluster_id = self.cluster_id | ||
| 11 | |||
| 12 | url_parts = [cluster_id, 'nodes', node_ip] | ||
| 13 | |||
| 14 | if node_property: | ||
| 15 | url_parts.extend(node_property) | ||
| 16 | |||
| 17 | url = self._get_full_url(url_parts) | ||
| 18 | |||
| 19 | return requests.get(url).json() | ||
| 20 |