1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

M #-: Fix compilation warning (#1289)

This commit is contained in:
Pavel Czerný 2021-06-10 10:53:29 +02:00 committed by GitHub
parent 0ebda56330
commit 96241c247a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,8 +54,8 @@ void MarketPlaceEnable::request_execute(
if (auto market = pool->get<MarketPlace>(id))
{
if (enable_flag && market->get_state() == MarketPlace::ENABLED ||
!enable_flag && market->get_state() == MarketPlace::DISABLED)
if ((enable_flag && market->get_state() == MarketPlace::ENABLED) ||
(!enable_flag && market->get_state() == MarketPlace::DISABLED))
{
success_response(id, att);
return;