no more upper() and use slug for dc search
This commit is contained in:
parent
f2195cf9e6
commit
d90eac3fe6
1 changed files with 2 additions and 2 deletions
|
@ -24,11 +24,11 @@ class ServerBase():
|
|||
|
||||
def get_datacenter(self):
|
||||
dc = Datacenter()
|
||||
return dc.get().upper()
|
||||
return dc.get()
|
||||
|
||||
def get_netbox_datacenter(self):
|
||||
datacenter = nb.dcim.sites.get(
|
||||
name=self.get_datacenter()
|
||||
slug=self.get_datacenter()
|
||||
)
|
||||
return datacenter
|
||||
|
||||
|
|
Loading…
Reference in a new issue