locky преди 4 години
родител
ревизия
bdea34ad09
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Controller/IotCoreController.py

+ 1 - 1
Controller/IotCoreController.py

@@ -41,7 +41,7 @@ class IotCoreView(View):
 
         if operation == 'createKeysAndCertificate':
             return self.create_keys_and_certificate(request_dict, response, request)
-        if operation == 'requestPublishMessage':
+        elif operation == 'requestPublishMessage':
             return self.request_publish_message(request_dict, response, request)
         elif operation == 'thingRegroup':
             return self.thing_regroup(request_dict, response, request)