Merge pull request #79 from agangidi53/master
Bug fixes for REST API flags related to updating BMC firmware
diff --git a/bin/bmc_update.py b/bin/bmc_update.py
index 2c1329d..a3032cf 100755
--- a/bin/bmc_update.py
+++ b/bin/bmc_update.py
@@ -103,12 +103,12 @@
tar.extractall(UPDATE_PATH,members=doExtract(tar,copy_files))
tar.close()
- if (self.Get(DBUS_NAME,"clear_persistent_files") == False):
+ if (self.Get(DBUS_NAME,"clear_persistent_files") == True):
print "Removing persistent files"
os.unlink(UPDATE_PATH+"/whitelist")
if (self.Get(DBUS_NAME,"preserve_network_settings") == True):
print "Preserving network settings"
- shutil.copy2("/dev/mtd2",UPDATE_PATH+"image-u-boot-env")
+ shutil.copy2("/dev/mtd2",UPDATE_PATH+"/image-u-boot-env")
except Exception as e:
print e