Ubuntu Pastebin

Paste from smoser at Wed, 13 Sep 2017 18:21:08 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff --git a/cloudinit/config/cc_bootcmd.py b/cloudinit/config/cc_bootcmd.py
index 233da1ef..9a880ecb 100644
--- a/cloudinit/config/cc_bootcmd.py
+++ b/cloudinit/config/cc_bootcmd.py
@@ -20,12 +20,6 @@ from cloudinit import util
 
 frequency = PER_ALWAYS
 
-# The schema definition for each cloud-config module is a strict contract for
-# describing supported configuration parameters for each cloud-config section.
-# It allows cloud-config to validate and alert users to invalid or ignored
-# configuration options before actually attempting to deploy with said
-# configuration.
-
 distros = ['all']
 
 schema = {
diff --git a/cloudinit/config/cc_ntp.py b/cloudinit/config/cc_ntp.py
index 15ae1ecd..67e7b48a 100644
--- a/cloudinit/config/cc_ntp.py
+++ b/cloudinit/config/cc_ntp.py
@@ -26,12 +26,6 @@ NR_POOL_SERVERS = 4
 distros = ['centos', 'debian', 'fedora', 'opensuse', 'ubuntu']
 
 
-# The schema definition for each cloud-config module is a strict contract for
-# describing supported configuration parameters for each cloud-config section.
-# It allows cloud-config to validate and alert users to invalid or ignored
-# configuration options before actually attempting to deploy with said
-# configuration.
-
 schema = {
     'id': 'cc_ntp',
     'name': 'NTP',
diff --git a/cloudinit/config/cc_runcmd.py b/cloudinit/config/cc_runcmd.py
index 7f995693..1203c4bc 100644
--- a/cloudinit/config/cc_runcmd.py
+++ b/cloudinit/config/cc_runcmd.py
@@ -16,13 +16,6 @@ from cloudinit import util
 import os
 from textwrap import dedent
 
-
-# The schema definition for each cloud-config module is a strict contract for
-# describing supported configuration parameters for each cloud-config section.
-# It allows cloud-config to validate and alert users to invalid or ignored
-# configuration options before actually attempting to deploy with said
-# configuration.
-
 distros = ['all']
 
 schema = {
diff --git a/cloudinit/config/schema.py b/cloudinit/config/schema.py
index c17d973e..198eae17 100644
--- a/cloudinit/config/schema.py
+++ b/cloudinit/config/schema.py
@@ -1,5 +1,12 @@
 # This file is part of cloud-init. See LICENSE file for license information.
-"""schema.py: Set of module functions for processing cloud-config schema."""
+"""schema.py: Set of module functions for processing cloud-config schema.
+
+The schema definition for each cloud-config module is a strict contract for
+describing supported configuration parameters for each cloud-config section.
+It allows cloud-config to validate and alert users to invalid or ignored
+configuration options before actually attempting to deploy with said
+configuration.
+"""
 
 from __future__ import print_function
 
Download as text