Revision e9a92550 kamaki/cli/argument.py

b/kamaki/cli/argument.py
116 116

  
117 117

  
118 118
class ConfigArgument(Argument):
119
    _config_file = None
120

  
119 121
    @property
120 122
    def value(self):
121 123
        super(self.__class__, self).value
......
123 125

  
124 126
    @value.setter
125 127
    def value(self, config_file):
126
        self._value = Config(config_file) if config_file else Config()
128
        if config_file:
129
            self._value = Config(config_file)
130
            self._config_file = config_file
131
        elif self._config_file:
132
            self._value = Config(self._config_file)
133
        else:
134
            self._value = Config()
127 135

  
128 136
    def get(self, group, term):
129 137
        return self.value.get(group, term)

Also available in: Unified diff