diff options
author | Simon Rettberg | 2017-07-11 12:08:53 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-07-11 12:08:53 +0200 |
commit | 1cfb2dc5e668bd82f62a5606e80ad61b56b8596c (patch) | |
tree | 8d6dbe1756ae043a45b65539a316ef55ae7dae0b /modules-available/vmstore | |
parent | [baseconfig] Make ConfigHolder static, change default prio, add getter (diff) | |
download | slx-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.php | 12 |
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/'); |