Commit bd1e91b8 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fixup whenever it is a shared instance (slave)

    Whenever you define a slave, the option_index inst the software-type but the property of the dict/object.
parent 14803a0e
......@@ -853,7 +853,8 @@
for (option_index in json['software-type']) {
if (json['software-type'].hasOwnProperty(option_index)) {
if ((gadget.state.software_type_list.length === 0) ||
(gadget.state.software_type_list.includes(option_index))) {
(gadget.state.software_type_list.includes(option_index)) ||
(gadget.state.software_type_list.includes(json['software-type'][option_index]['software-type']))) {
if (json['software-type'][option_index].shared === undefined) {
json['software-type'][option_index].shared = false;
......
......@@ -280,7 +280,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1004.35618.45138.1348</string> </value>
<value> <string>1005.42112.63718.7782</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -298,7 +298,7 @@
</tuple>
<state>
<tuple>
<float>1671043096.21</float>
<float>1676052985.24</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment