[lxc-devel] [nova-lxd/master] use lxd: namespace for flavor extra_specs

peter-slovak on Github lxc-bot at linuxcontainers.org
Tue Apr 19 16:55:21 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 359 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160419/a774dc9e/attachment.bin>
-------------- next part --------------
From ac4fc85ffbb17cbb2bec53b6b66f5631d8f4b733 Mon Sep 17 00:00:00 2001
From: Peter Slovak <peter.slovak at websupport.sk>
Date: Tue, 19 Apr 2016 18:52:26 +0200
Subject: [PATCH] use lxd: namespace for flavor extra_specs

---
 nova_lxd/nova/virt/lxd/config.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nova_lxd/nova/virt/lxd/config.py b/nova_lxd/nova/virt/lxd/config.py
index 8470754..df7f31c 100644
--- a/nova_lxd/nova/virt/lxd/config.py
+++ b/nova_lxd/nova/virt/lxd/config.py
@@ -164,13 +164,13 @@ def config_instance_options(self, config, instance):
         # Determine if we require a nested container
         flavor = instance.flavor
         lxd_nested_allowed = flavor.extra_specs.get(
-            'lxd_nested_allowed', False)
+            'lxd:nested_allowed', False)
         if lxd_nested_allowed:
             config['security.nesting'] = 'True'
 
         # Determine if we require a privileged container
         lxd_privileged_allowed = flavor.extra_specs.get(
-            'lxd_privileged_allowed', False)
+            'lxd:privileged_allowed', False)
         if lxd_privileged_allowed:
             config['security.privileged'] = 'True'
 


More information about the lxc-devel mailing list