#
#
-# Copyright (C) 2006, 2007 Google Inc.
+# Copyright (C) 2006, 2007, 2010 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
"""Module implementing a fake ConfigWriter"""
from ganeti import utils
+from ganeti import netutils
FAKE_CLUSTER_KEY = ("AAAAB3NzaC1yc2EAAAABIwAAAQEAsuGLw70et3eApJ/ZEJkAVZogIrm"
return "test.cluster"
def GetMasterNode(self):
- return utils.HostInfo().name
+ return netutils.Hostname.GetSysName()
+
+ def GetDefaultIAllocator(Self):
+ return "testallocator"
class FakeProc:
"""Fake processor object"""
+ def Log(self, msg, *args, **kwargs):
+ pass
+
def LogWarning(self, msg, *args, **kwargs):
pass