Verified Commit 096d3d29 authored by Luc Didry's avatar Luc Didry

Modify the generated pillar conf to make it like the sample

parent affd232a
Pipeline #131928 passed with stages
in 48 seconds
......@@ -393,7 +393,7 @@ export default {
},
computed: {
yml: function() {
return yaml.safeDump(this.json, {sortKeys: true})
return yaml.safeDump({ hosts: { my_server: this.json } }, { sortKeys: true })
},
pillar: function() {
return window.URL.createObjectURL(
......@@ -403,7 +403,7 @@ export default {
humanizeQuota: function () {
if (this.json.user.video_quota < 0)
return "illimité"
return filesize(this.json.user.video_quota, {base: 10, locale: true, unix: true})
return filesize(this.json.user.video_quota, { base: 10, locale: true, unix: true })
},
quotaStep: function () {
if (this.json.user.video_quota < 0)
......@@ -413,7 +413,7 @@ export default {
humanizeDailyQuota: function () {
if (this.json.user.video_quota_daily < 0)
return "illimité"
return filesize(this.json.user.video_quota_daily, {base: 10, locale: true, unix: true})
return filesize(this.json.user.video_quota_daily, { base: 10, locale: true, unix: true })
},
dailyQuotaStep: function () {
if (this.json.user.video_quota_daily < 0)
......
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