Commit f64c9de6 authored by Guido Trotter's avatar Guido Trotter
Browse files

Fix an error accessing the cfg

Since the context is passed to LogicalUnit, rather than the cfg, we can
only access the cfg as self.cfg, self.context.cfg, or context.cfg (in
the constructor). cfg is not valid anymore.

Reviewed-by: iustinp
parent a2fd9afc
......@@ -89,7 +89,7 @@ class LogicalUnit(object):
raise errors.OpPrereqError("Required parameter '%s' missing" %
if not cfg.IsCluster():
if not self.cfg.IsCluster():
raise errors.OpPrereqError("Cluster not initialized yet,"
" use 'gnt-cluster init' first.")
if self.REQ_MASTER:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment