Handle installing v1 templates

This commit is contained in:
Squidly271
2021-04-13 22:09:28 -04:00
committed by GitHub
parent 2479582d70
commit d9d64e13a6
@@ -166,7 +166,7 @@ function xmlToVar($xml) {
'Default' => xml_decode($port->HostPort),
'Value' => xml_decode($port->HostPort),
'Mode' => xml_decode($port->Protocol) ? xml_decode($port->Protocol) : "tcp",
'Description' => ($out['Network'] == 'bridge') ? 'Container Port: '.xml_decode($port->ContainerPort) : 'n/a',
'Description' => '',
'Type' => 'Port',
'Display' => 'always',
'Required' => 'true',
@@ -185,7 +185,7 @@ function xmlToVar($xml) {
'Default' => xml_decode($vol->HostDir),
'Value' => xml_decode($vol->HostDir),
'Mode' => xml_decode($vol->Mode) ? xml_decode($vol->Mode) : "rw",
'Description' => 'Container Path: '.xml_decode($vol->ContainerDir),
'Description' => '',
'Type' => 'Path',
'Display' => 'always',
'Required' => 'true',
@@ -204,7 +204,7 @@ function xmlToVar($xml) {
'Default' => xml_decode($varitem->Value),
'Value' => xml_decode($varitem->Value),
'Mode' => '',
'Description' => 'Container Variable: '.xml_decode($varitem->Name),
'Description' => '',
'Type' => 'Variable',
'Display' => 'always',
'Required' => 'false',
@@ -223,7 +223,7 @@ function xmlToVar($xml) {
'Default' => xml_decode($varitem->Value),
'Value' => xml_decode($varitem->Value),
'Mode' => '',
'Description' => 'Container Label: '.xml_decode($varitem->Name),
'Description' => '',
'Type' => 'Label',
'Display' => 'always',
'Required' => 'false',