Revision 8556d269 kamaki/cli/config/__init__.py
b/kamaki/cli/config/__init__.py | ||
---|---|---|
358 | 358 |
return self.set_cloud(cloud, option, value) |
359 | 359 |
if section not in RawConfigParser.sections(self): |
360 | 360 |
self.add_section(section) |
361 |
RawConfigParser.set(self, section, option, value) |
|
361 |
return RawConfigParser.set(self, section, option, value)
|
|
362 | 362 |
|
363 | 363 |
def remove_option(self, section, option, also_remove_default=False): |
364 | 364 |
try: |
365 | 365 |
if also_remove_default: |
366 | 366 |
DEFAULTS[section].pop(option) |
367 | 367 |
RawConfigParser.remove_option(self, section, option) |
368 |
except NoSectionError:
|
|
368 |
except (NoSectionError, KeyError):
|
|
369 | 369 |
pass |
370 | 370 |
|
371 | 371 |
def remove_from_cloud(self, cloud, option): |
Also available in: Unified diff