Skip to contentSkip to conversation

identity.bbclass: Fix python synthax error

PATCH In review Adrian Dudau 2 participants 2 messages Sep 20, 2016 – Sep 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 identity.bbclass: Fix python synthax error

---
 meta-openstack/classes/identity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-openstack/classes/identity.bbclass +1 -1
index 672f6c4..3601f52 100644
@@ -85,7 +85,7 @@ def sanity_check(d):
     for pkg in servicecreate_packages.split():
         # User parameters checking.
         if not d.getVar('USERCREATE_PARAM_%s' % pkg, True) and not d.getVar('SERVICECREATE_PARAM_%s' % pkg, True):
-            raise bb.build.FuncFailed, "%s SERVICECREATE_PACKAGES includes %s, but neither USERCREATE_PARAM_%s nor SERVICECREATE_PARAM_%s is set" % (d.getVar('FILE'), pkg, pkg, pkg)
+            raise bb.build.FuncFailed("%s SERVICECREATE_PACKAGES includes %s, but neither USERCREATE_PARAM_%s nor SERVICECREATE_PARAM_%s is set" % (d.getVar('FILE'), pkg, pkg, pkg))
 
 python __anonymous() {
     sanity_check(d)
Signature · 1 line
1.9.1
#1 lore raw

merged.

Bruce

Quoted 33 lines · Adrian Dudau
---
 meta-openstack/classes/identity.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-openstack/classes/identity.bbclass +0 -0
index 672f6c4..3601f52 100644
@@ -85,7 +85,7 @@ def sanity_check(d):
     for pkg in servicecreate_packages.split():
         # User parameters checking.
         if not d.getVar('USERCREATE_PARAM_%s' % pkg, True) and not

d.getVar('SERVICECREATE_PARAM_%s' % pkg, True):
- raise bb.build.FuncFailed, "%s SERVICECREATE_PACKAGES
includes %s, but neither USERCREATE_PARAM_%s nor SERVICECREATE_PARAM_%s is set" % (d.getVar('FILE'), pkg, pkg, pkg)
+ raise bb.build.FuncFailed("%s SERVICECREATE_PACKAGES includes
%s, but neither USERCREATE_PARAM_%s nor SERVICECREATE_PARAM_%s is set" % (d.getVar('FILE'), pkg, pkg, pkg))

python __anonymous() {
sanity_check(d)
--
1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"