Pārlūkot izejas kodu

added indexing for sysfs id

related bug: PROD-21512

Change-Id: I874535dbc6882ad49f133999209ae6a4c3bde403
pull/162/head
Ondrej Smola pirms 6 gadiem
vecāks
revīzija
6040a3f96d
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      linux/system/sysfs.sls

+ 2
- 1
linux/system/sysfs.sls Parādīt failu

@@ -33,11 +33,12 @@ linux_sysfs_package:
{%- endif %}

{%- for item in sysfs_list %}
{%- set list_idx = loop.index %}
{%- for key, value in item.items() %}
{%- if key not in ["mode", "owner"] %}
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
{#- Sysfs cannot be set in docker, LXC, etc. #}
linux_sysfs_write_{{ name }}_{{ key }}:
linux_sysfs_write_{{ list_idx }}_{{ name }}_{{ key }}:
module.run:
- name: sysfs.write
- key: {{ key }}

Notiek ielāde…
Atcelt
Saglabāt