summaryrefslogtreecommitdiffstats
path: root/modules-available/vmstore
diff options
context:
space:
mode:
authorSimon Rettberg2017-07-11 12:08:53 +0200
committerSimon Rettberg2017-07-11 12:08:53 +0200
commit1cfb2dc5e668bd82f62a5606e80ad61b56b8596c (patch)
tree8d6dbe1756ae043a45b65539a316ef55ae7dae0b /modules-available/vmstore
parent[baseconfig] Make ConfigHolder static, change default prio, add getter (diff)
downloadslx-admin-1cfb2dc5e668bd82f62a5606e80ad61b56b8596c.tar.gz
slx-admin-1cfb2dc5e668bd82f62a5606e80ad61b56b8596c.tar.xz
slx-admin-1cfb2dc5e668bd82f62a5606e80ad61b56b8596c.zip
[*] Adapt to new baseconfig API
Diffstat (limited to 'modules-available/vmstore')
-rw-r--r--modules-available/vmstore/baseconfig/getconfig.inc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules-available/vmstore/baseconfig/getconfig.inc.php b/modules-available/vmstore/baseconfig/getconfig.inc.php
index e34c502a..75f7279b 100644
--- a/modules-available/vmstore/baseconfig/getconfig.inc.php
+++ b/modules-available/vmstore/baseconfig/getconfig.inc.php
@@ -5,18 +5,18 @@ $vmstore = Property::getVmStoreConfig();
if (is_array($vmstore) && isset($vmstore['storetype'])) {
switch ($vmstore['storetype']) {
case 'internal';
- $configVars["SLX_VM_NFS"] = $_SERVER['SERVER_ADDR'] . ":/srv/openslx/nfs";
+ ConfigHolder::add("SLX_VM_NFS", $_SERVER['SERVER_ADDR'] . ":/srv/openslx/nfs");
break;
case 'nfs';
- $configVars["SLX_VM_NFS"] = $vmstore['nfsaddr'];
+ ConfigHolder::add("SLX_VM_NFS", $vmstore['nfsaddr']);
break;
case 'cifs';
- $configVars["SLX_VM_NFS"] = $vmstore['cifsaddr'];
- $configVars["SLX_VM_NFS_USER"] = $vmstore['cifsuserro'];
- $configVars["SLX_VM_NFS_PASSWD"] = $vmstore['cifspasswdro'];
+ ConfigHolder::add("SLX_VM_NFS", $vmstore['cifsaddr']);
+ ConfigHolder::add("SLX_VM_NFS_USER", $vmstore['cifsuserro']);
+ ConfigHolder::add("SLX_VM_NFS_PASSWD", $vmstore['cifspasswdro']);
break;
}
}
// vm list url. doesn't really fit anywhere, seems to be a tie between here and dozmod
-$configVars["SLX_VMCHOOSER_BASE_URL"] = 'http://' . $_SERVER['SERVER_ADDR'] . '/vmchooser/';
+ConfigHolder::add("SLX_VMCHOOSER_BASE_URL", 'http://' . $_SERVER['SERVER_ADDR'] . '/vmchooser/');