Revision 89e1fc26 test/mocks.py

b/test/mocks.py
22 22
"""Module implementing a fake ConfigWriter"""
23 23

  
24 24
import socket
25
from ganeti import utils
25 26

  
26 27
class FakeConfig:
27 28
    """Fake configuration object"""
......
33 34
        return ["a", "b", "c"]
34 35

  
35 36
    def GetMaster(self):
36
        return socket.gethostname()
37
        return utils.HostInfo().name
37 38

  
38 39

  
39 40
class FakeSStore:
......
43 44
        return "test.cluster"
44 45

  
45 46
    def GetMasterNode(self):
46
        return socket.gethostname()
47
        return utils.HostInfo().name

Also available in: Unified diff