Fix setup error of Mikrotik (#30810)
This commit is contained in:
1 parent
368d04b2a1
commit
8f852bd656
1 file changed
+1
-1
@@ -167,7 +167,7 @@ class MikrotikClient:
|
||||
|
||||
def get_hostname(self):
|
||||
"""Return device host name."""
|
||||
data = self.command(MIKROTIK_SERVICES[IDENTITY])
|
||||
data = list(self.command(MIKROTIK_SERVICES[IDENTITY]))
|
||||
return data[0][NAME] if data else None
|
||||
|
||||
def connected(self):
|
||||
|
||||
Reference in new issue
Block a user