* Adjust nexus type for database.
This commit is contained in:
@@ -996,6 +996,7 @@ class InstanceModel extends model
|
||||
if($result->code != 200)
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_INSTANCE)->where('id')->eq($instance->id)->exec();
|
||||
dao::$errors['server'][] = $result->message;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2135,7 +2136,7 @@ class InstanceModel extends model
|
||||
|
||||
$pipeline = new stdclass();
|
||||
$instance->type = $instance->chart;
|
||||
$pipeline->type = $instance->type;
|
||||
$pipeline->type = $instance->type == 'nexus3' ? 'nexus' : $instance->type;
|
||||
$pipeline->private = md5(strval(rand(10,113450)));
|
||||
$pipeline->createdBy = 'system';
|
||||
$pipeline->createdDate = helper::now();
|
||||
|
||||
Reference in New Issue
Block a user