summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware12
diff options
context:
space:
mode:
authorJonathan Bauer2018-05-07 12:56:57 +0200
committerJonathan Bauer2018-05-07 12:56:57 +0200
commit96894669b5754dff1f2edda5a54c8b124593b03c (patch)
tree73141cbbef7e9c036bfc35e4351cb1b54160c669 /core/modules/vmware12
parent[*virt*] fix vmware VM only having 1 core... (diff)
downloadmltk-96894669b5754dff1f2edda5a54c8b124593b03c.tar.gz
mltk-96894669b5754dff1f2edda5a54c8b124593b03c.tar.xz
mltk-96894669b5754dff1f2edda5a54c8b124593b03c.zip
[vmware12] CPU_CORES should not be readonly
Diffstat (limited to 'core/modules/vmware12')
-rw-r--r--core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc b/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
index ce929230..957a15f8 100644
--- a/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
+++ b/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/determine_hardware_limitations.inc
@@ -174,7 +174,7 @@ set_vm_hardware_limits() {
MAXCORES="1"
;;
esac
- declare -rg CPU_CORES="${HW_THREADS:-1}"
+ declare -g CPU_CORES="${HW_THREADS:-1}"
declare -rg HOST_CORE_COUNT="$CPU_CORES"
[ "$CPU_CORES" -gt "$MAXCORES" ] && CPU_CORES="$MAXCORES"