|
12 | 12 |
|
13 | 13 |
|
14 | 14 | METADATA_MAPPING = { |
15 | | - 'backend_mac': {'call': 'BackendMacAddresses'}, |
16 | | - 'datacenter': {'call': 'Datacenter'}, |
17 | | - 'datacenter_id': {'call': 'DatacenterId'}, |
18 | | - 'domain': {'call': 'Domain'}, |
19 | | - 'frontend_mac': {'call': 'FrontendMacAddresses'}, |
20 | | - 'fqdn': {'call': 'FullyQualifiedDomainName'}, |
21 | | - 'hostname': {'call': 'Hostname'}, |
22 | | - 'id': {'call': 'Id'}, |
23 | | - 'primary_backend_ip': {'call': 'PrimaryBackendIpAddress'}, |
24 | | - 'primary_ip': {'call': 'PrimaryIpAddress'}, |
25 | | - 'primary_frontend_ip': {'call': 'PrimaryIpAddress'}, |
26 | | - 'provision_state': {'call': 'ProvisionState'}, |
27 | | - 'router': {'call': 'Router', 'param_req': True}, |
28 | | - 'tags': {'call': 'Tags'}, |
29 | | - 'user_data': {'call': 'UserMetadata'}, |
30 | | - 'user_metadata': {'call': 'UserMetadata'}, |
31 | | - 'vlan_ids': {'call': 'VlanIds', 'param_req': True}, |
32 | | - 'vlans': {'call': 'Vlans', 'param_req': True}, |
| 15 | + 'backend_mac': {'call': 'getBackendMacAddresses'}, |
| 16 | + 'datacenter': {'call': 'getDatacenter'}, |
| 17 | + 'datacenter_id': {'call': 'getDatacenterId'}, |
| 18 | + 'domain': {'call': 'getDomain'}, |
| 19 | + 'frontend_mac': {'call': 'getFrontendMacAddresses'}, |
| 20 | + 'fqdn': {'call': 'getFullyQualifiedDomainName'}, |
| 21 | + 'hostname': {'call': 'getHostname'}, |
| 22 | + 'id': {'call': 'getId'}, |
| 23 | + 'primary_backend_ip': {'call': 'getPrimaryBackendIpAddress'}, |
| 24 | + 'primary_ip': {'call': 'getPrimaryIpAddress'}, |
| 25 | + 'primary_frontend_ip': {'call': 'getPrimaryIpAddress'}, |
| 26 | + 'provision_state': {'call': 'getProvisionState'}, |
| 27 | + 'router': {'call': 'getRouter', 'param_req': True}, |
| 28 | + 'tags': {'call': 'getTags'}, |
| 29 | + 'user_data': {'call': 'getUserMetadata'}, |
| 30 | + 'user_metadata': {'call': 'getUserMetadata'}, |
| 31 | + 'vlan_ids': {'call': 'getVlanIds', 'param_req': True}, |
| 32 | + 'vlans': {'call': 'getVlans', 'param_req': True}, |
33 | 33 | } |
34 | 34 | METADATA_ATTRIBUTES = METADATA_MAPPING.keys() |
35 | 35 |
|
@@ -92,7 +92,7 @@ def get(self, name, param=None): |
92 | 92 | params = (param,) |
93 | 93 | try: |
94 | 94 | return self.client.call('Resource_Metadata', |
95 | | - "get"+self.attribs[name]['call'], |
| 95 | + self.attribs[name]['call'], |
96 | 96 | *params) |
97 | 97 | except exceptions.SoftLayerAPIError as ex: |
98 | 98 | if ex.faultCode == 404: |
|
0 commit comments