summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vscode/extensions.json5
-rw-r--r--cloudinit/config/schemas/schema-cloud-config-v1.json4
-rw-r--r--cloudinit/config/schemas/versions.schema.cloud-config.json2
3 files changed, 8 insertions, 3 deletions
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 00000000..6098b6eb
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,5 @@
+{
+ "recommendations": [
+ "redhat.vscode-yaml"
+ ]
+}
diff --git a/cloudinit/config/schemas/schema-cloud-config-v1.json b/cloudinit/config/schemas/schema-cloud-config-v1.json
index d409d5d6..a5be310a 100644
--- a/cloudinit/config/schemas/schema-cloud-config-v1.json
+++ b/cloudinit/config/schemas/schema-cloud-config-v1.json
@@ -2089,7 +2089,7 @@
},
"content": {
"type": "string",
- "default": "",
+ "default": "''",
"description": "Optional content to write to the provided ``path``. When content is present and encoding is not 'text/plain', decode the content prior to writing. Default: ``''``"
},
"owner": {
@@ -2099,7 +2099,7 @@
},
"permissions": {
"type": "string",
- "default": "0o644",
+ "default": "'0o644'",
"description": "Optional file permissions to set on ``path`` represented as an octal string '0###'. Default: ``0o644``"
},
"encoding": {
diff --git a/cloudinit/config/schemas/versions.schema.cloud-config.json b/cloudinit/config/schemas/versions.schema.cloud-config.json
index 4ff3b4d1..c606085c 100644
--- a/cloudinit/config/schemas/versions.schema.cloud-config.json
+++ b/cloudinit/config/schemas/versions.schema.cloud-config.json
@@ -11,7 +11,7 @@
}
}
},
- {"$ref": "./schema-cloud-config-v1.json"}
+ {"$ref": "https://raw.githubusercontent.com/canonical/cloud-init/main/cloudinit/config/schemas/schema-cloud-config-v1.json"}
]
}
]