mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
cloud-init: update nixos support patch
This commit is contained in:
parent
b968413db9
commit
039ec28011
@ -1,8 +1,8 @@
|
||||
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
|
||||
index 7b83df8d..6d04de1a 100644
|
||||
index 79e26235..bdc32c52 100644
|
||||
--- a/cloudinit/distros/__init__.py
|
||||
+++ b/cloudinit/distros/__init__.py
|
||||
@@ -75,6 +75,7 @@ OSFAMILIES = {
|
||||
@@ -91,6 +91,7 @@ OSFAMILIES = {
|
||||
],
|
||||
"openeuler": ["openeuler"],
|
||||
"OpenCloudOS": ["OpenCloudOS", "TencentOS"],
|
||||
@ -12,7 +12,7 @@ index 7b83df8d..6d04de1a 100644
|
||||
LOG = logging.getLogger(__name__)
|
||||
diff --git a/cloudinit/distros/nixos.py b/cloudinit/distros/nixos.py
|
||||
new file mode 100644
|
||||
index 00000000..954e564b
|
||||
index 00000000..67c049b8
|
||||
--- /dev/null
|
||||
+++ b/cloudinit/distros/nixos.py
|
||||
@@ -0,0 +1,109 @@
|
||||
@ -38,11 +38,11 @@ index 00000000..954e564b
|
||||
+# You should have received a copy of the GNU General Public License
|
||||
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+
|
||||
+import logging
|
||||
+import os
|
||||
+
|
||||
+from cloudinit import distros
|
||||
+from cloudinit import helpers
|
||||
+from cloudinit import log as logging
|
||||
+from cloudinit import util
|
||||
+from cloudinit import atomic_helper
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user