فهرست منبع

FD3-751 update comando para actualizar cablemodem desde dhcp

Espinoza Guillermo 6 سال پیش
والد
کامیت
a5f7795f3c
3فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 1 1
      app/DoctrineMigrations/src/action.yml
  2. 3 3
      composer.lock
  3. 2 2
      src/HostBundle/Command/CablemodemUpdateCommand.php

+ 1 - 1
app/DoctrineMigrations/src/action.yml

@@ -34,5 +34,5 @@ insertorupdate:
           name: "Update fixed address Cablemodem"
           object_class: "HostBundle\\Entity\\Host"
           event: "a:1:{i:0;s:9:\"preUpdate\";}"
-          template: "echo \"Actualizando Cablemodem\"\r\n\r\nphp bin/console cablemodem:update --id={{object.id}}"
+          template: "echo \"Actualizando Cablemodem\"\r\n\r\nphp /opt/dhcp/bin/console cablemodem:update --id={{object.id}}"
           tenancy_id: 1  

+ 3 - 3
composer.lock

@@ -1647,7 +1647,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/WorkflowBundle.git",
-                "reference": "13431443af6cd4038230a15e05f593363a642ad1"
+                "reference": "8919bf2fec49fa73cd31b07a83a542bbd0767136"
             },
             "require": {
                 "php-amqplib/rabbitmq-bundle": "^1.12"
@@ -1677,7 +1677,7 @@
                 "bundle",
                 "workflow"
             ],
-            "time": "2018-11-22T18:10:58+00:00"
+            "time": "2018-11-23T13:16:02+00:00"
         },
         {
             "name": "incenteev/composer-parameter-handler",
@@ -6283,7 +6283,7 @@
         "voryx/restgeneratorbundle": 20
     },
     "prefer-stable": false,
-    "prefer-lowest": false,
+    "prefer-lowest": true,
     "platform": {
         "php": ">=5.5.9"
     },

+ 2 - 2
src/HostBundle/Command/CablemodemUpdateCommand.php

@@ -114,7 +114,7 @@ EOT
         // Consulto en Cablemodem
         $cablemodem = null;
         $url = $ws->buildUrl($urlGET, compact('mac'));
-        $cablemodemJSON = $ws->makeGetRequest($url, HttpRequestInterface::METHOD_GET, [], $this->credentials);
+        $cablemodemJSON = $ws->makeGetRequest($url);
         if ($cablemodemJSON) {
             $cablemodem = current(json_decode($cablemodemJSON, true));
         }
@@ -150,7 +150,7 @@ EOT
                 break;
         }
         
-        $cablemodemJSON = $ws->makeGetRequest($urlPUT, HttpRequestInterface::METHOD_PUT, $data, $this->credentials);
+        $cablemodemJSON = $ws->makeGetRequest($urlPUT, HttpRequestInterface::METHOD_PUT, $data);
         if ($cablemodemJSON) {
             $cablemodem = current(json_decode($cablemodemJSON, true));
         }