Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
62779dd0
Commit
62779dd0
authored
Aug 03, 2007
by
Iustin Pop
Browse files
Implement a standard way of getting the cluster object from the
configuration. Reviewed-by: imsnah
parent
923b1523
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/config.py
View file @
62779dd0
...
...
@@ -603,3 +603,15 @@ class ConfigWriter:
self
.
_OpenConfig
()
self
.
_ReleaseLock
()
return
self
.
_config_data
.
cluster
.
mac_prefix
def
GetClusterInfo
(
self
):
"""Returns informations about the cluster
Returns:
the cluster object
"""
self
.
_OpenConfig
()
self
.
_ReleaseLock
()
return
self
.
_config_data
.
cluster
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment