Explorar el Código

Fix dhcp command

Espinoza Guillermo hace 6 años
padre
commit
9de126f19f
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/CablemodemBundle/Command/DHCPHostCRUDCommand.php

+ 2 - 0
src/CablemodemBundle/Command/DHCPHostCRUDCommand.php

@@ -125,6 +125,8 @@ EOT
         
         if (!isset($hostId)) {
             $this->io->error("No existe el hostType {$type} en DHCP");
+            
+            return;
         }
         
         // Creo, edito o elimino dependiendo los parámetros