]> granicus.if.org Git - icinga2/commitdiff
Fix wrong type for object version
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 15 Oct 2015 09:10:46 +0000 (11:10 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 15 Oct 2015 09:11:07 +0000 (11:11 +0200)
refs #10355

lib/remote/apilistener-configsync.cpp

index 297b6927972d44c05b9da199b4f778572c2c99e0..4a5983599bdea74b59340886ed00d1a726f53534 100644 (file)
@@ -102,7 +102,7 @@ Value ApiListener::ConfigUpdateObjectAPIHandler(const MessageOrigin::Ptr& origin
        }
 
        /* update the object */
-       double objVersion = Convert::ToLong(params->Get("version"));
+       double objVersion = params->Get("version");
 
        ConfigType::Ptr dtype = ConfigType::GetByName(objType);