瀏覽代碼

Fix crating multiple loopback devices

This patch fixes issue with duplicate task IDs when multiple
loopback devices should be added, and they stored in the same
directory.

Change-Id: Iae0027b6ee187f5366967e667380dfb3eae232fc
Related-Prod: PROD-17620
pull/144/head
Vasyl Saienko 6 年之前
父節點
當前提交
d458e6449b
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      linux/storage/loopback.sls

+ 2
- 1
linux/storage/loopback.sls 查看文件

@@ -6,8 +6,9 @@

{%- if loopback.get('enabled', True) %}

{{ salt['file.dirname'](loopback.file) }}:
{{ loopback.file }}_directory:
file.directory:
- name: {{ salt['file.dirname'](loopback.file) }}
- makedirs: true
- require_in:
- file: {{ loopback.file }}

Loading…
取消
儲存