-
Dimitris Aragiorgis authored
During backup import/export SafeConfigParser() is used to save/restore instance's configuration. There is a possibility if an export is done with a different Ganeti version, a specific value not to be saved during export (e.g. the NIC/Disk name) but still requested during import. With this patch we override the get() method of SafeConfigParser() and catch NoOptionError if raised and return None. Additionally we translate "None" values read from .ini file into None. Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr> Signed-off-by: Michele Tartara <mtartara@google.com> Reviewed-by: Michele Tartara <mtartara@google.com>
523170de