mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 17:10:18 +01:00 
			
		
		
		
	fixed bug with a env-configuration containing deployment description in hosts section
This commit is contained in:
		
							parent
							
								
									5199a915b6
								
							
						
					
					
						commit
						8e603bd0d2
					
				@ -439,13 +439,22 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            $result = true;
 | 
					            $result = true;
 | 
				
			||||||
            foreach ($hosts as $host) {
 | 
					            foreach ($hosts as $hostKey => $host) {
 | 
				
			||||||
                $this->getConfig()->setHost($host);
 | 
					                $hostConfig = null;
 | 
				
			||||||
 | 
					                if (is_array($host)) {
 | 
				
			||||||
 | 
					                    $hostConfig = $host;
 | 
				
			||||||
 | 
					                    $host = $hostKey;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                // Set Host and Host Specific Config
 | 
				
			||||||
 | 
					                $this->getConfig()->setHost($host);
 | 
				
			||||||
 | 
					                $this->getConfig()->setHostConfig($hostConfig);
 | 
				
			||||||
                $this->getConfig()->setReleaseId(-1);
 | 
					                $this->getConfig()->setReleaseId(-1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                $task = Factory::get('releases/rollback', $this->getConfig());
 | 
					                $task = Factory::get('releases/rollback', $this->getConfig());
 | 
				
			||||||
                $task->init();
 | 
					                $task->init();
 | 
				
			||||||
                $result = $task->run() && $result;
 | 
					                $result = $task->run() && $result;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return $result;
 | 
					            return $result;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user