Revision b705c7a6 test/ganeti.config_unittest.py
b/test/ganeti.config_unittest.py | ||
---|---|---|
1 | 1 |
#!/usr/bin/python |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2010 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
60 | 60 |
|
61 | 61 |
def _init_cluster(self, cfg): |
62 | 62 |
"""Initializes the cfg object""" |
63 |
me = netutils.HostInfo()
|
|
63 |
me = netutils.Hostname()
|
|
64 | 64 |
ip = constants.IP4_ADDRESS_LOCALHOST |
65 | 65 |
|
66 | 66 |
cluster_config = objects.Cluster( |
Also available in: Unified diff