added indexing for sysfs id

related bug: PROD-21512

Change-Id: I874535dbc6882ad49f133999209ae6a4c3bde403
diff --git a/linux/system/sysfs.sls b/linux/system/sysfs.sls
index 9b0b8f6..8440384 100644
--- a/linux/system/sysfs.sls
+++ b/linux/system/sysfs.sls
@@ -33,11 +33,12 @@
 {%- 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 }}