diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2017-10-08 16:50:42 -0500 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2017-10-08 16:51:11 -0500 |
commit | d16bcbd56507e39d573a1890a2a3ffc722468e28 (patch) | |
tree | be3b558059c095f874ffbe854eeaae6d58f03a5f | |
parent | b30caddc0925d12239a239aa643a30f8a80211f4 (diff) | |
download | phosphor-bmc-code-mgmt-d16bcbd56507e39d573a1890a2a3ffc722468e28.tar.gz phosphor-bmc-code-mgmt-d16bcbd56507e39d573a1890a2a3ffc722468e28.zip |
Style changes in item_updater.cpp
Style changes only.
Change-Id: I87160818978bbc587ae4b4b5f6ff7ca379a4aa02
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r-- | item_updater.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/item_updater.cpp b/item_updater.cpp index bb361f7..1cafb03 100644 --- a/item_updater.cpp +++ b/item_updater.cpp @@ -153,7 +153,7 @@ void ItemUpdater::processBMCImage() // Read os-release from folders under /media/ to get // BMC Software Versions. - for(const auto& iter : fs::directory_iterator(MEDIA_DIR)) + for (const auto& iter : fs::directory_iterator(MEDIA_DIR)) { auto activationState = server::Activation::Activations::Active; static const auto BMC_RO_PREFIX_LEN = strlen(BMC_ROFS_PREFIX); @@ -257,14 +257,12 @@ void ItemUpdater::processBMCImage() // and create rofs-<versionId> under /media if (activations.size() == 0) { - auto version = - phosphor::software::manager::Version:: - getBMCVersion(OS_RELEASE_FILE); + auto version = VersionClass::getBMCVersion(OS_RELEASE_FILE); auto id = phosphor::software::manager::Version::getId(version); auto versionFileDir = BMC_ROFS_PREFIX + id + "/etc/"; try { - if(!fs::is_directory(versionFileDir)) + if (!fs::is_directory(versionFileDir)) { fs::create_directories(versionFileDir); } @@ -291,7 +289,7 @@ void ItemUpdater::erase(std::string entryId) log<level::ERR>(("Error: Version " + entryId + \ " is currently running on the BMC." \ " Unable to remove.").c_str()); - return; + return; } // Delete ReadOnly partitions if it's not active @@ -571,7 +569,7 @@ bool ItemUpdater::isLowestPriority(uint8_t value) { for (const auto& intf : activations) { - if(intf.second->redundancyPriority) + if (intf.second->redundancyPriority) { if (intf.second->redundancyPriority.get()->priority() < value) { |