Revision 5fcdc80d tools/cfgshell

b/tools/cfgshell
63 63

  
64 64
    """
65 65
    cmd.Cmd.__init__(self)
66
    self.cfg = self.cluster_name = None
66
    self.cfg = None
67 67
    self.parents = []
68 68
    self.path = []
69 69
    if cfg_file:
......
133 133
    if self.cfg is None:
134 134
      self.prompt = "(#no config) "
135 135
    else:
136
      self.prompt = "(%s:/%s) " % (self.cluster_name, "/".join(self.path))
136
      self.prompt = "(/%s) " % ("/".join(self.path),)
137 137
    return stop
138 138

  
139 139
  def do_load(self, line):
......
155 155
      self.cfg._OpenConfig()
156 156
      self.parents = [self.cfg._config_data]
157 157
      self.path = []
158
      self.cluster_name = self.cfg.GetClusterName()
159 158
    except errors.ConfigurationError, err:
160 159
      print "Error: %s" % str(err)
161 160
    return False

Also available in: Unified diff