forked from shaba/openuds
Fixed MAC address to uppercase on Free & OpenStack
This commit is contained in:
parent
9d6f3111da
commit
9965be5a76
@ -42,7 +42,7 @@ from uds.core.ui import gui
|
||||
import six
|
||||
import logging
|
||||
|
||||
__updated__ = '2017-05-09'
|
||||
__updated__ = '2017-05-16'
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -323,7 +323,7 @@ class LiveService(Service):
|
||||
'''
|
||||
net = self.api.getServer(machineId)['addresses']
|
||||
vals = six.next(six.itervalues(net))[0] # Returns "any" mac address of any interface. We just need only one interface info
|
||||
return (vals['OS-EXT-IPS-MAC:mac_addr'], vals['addr'])
|
||||
return (vals['OS-EXT-IPS-MAC:mac_addr'].upper(), vals['addr'])
|
||||
|
||||
def getBaseName(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user