summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/entity.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-18 18:54:43 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:29 +0200
commita513673f043e37dc0fbad0b698f3f12a6a15a06c (patch)
treed228c0129fd1cfb6a79fb6d9b9b5c477f68b37e9 /install/ui/src/freeipa/entity.js
parentaba74aafe57479e3d94e7010f08907352596edb8 (diff)
downloadfreeipa-a513673f043e37dc0fbad0b698f3f12a6a15a06c.tar.gz
freeipa-a513673f043e37dc0fbad0b698f3f12a6a15a06c.tar.xz
freeipa-a513673f043e37dc0fbad0b698f3f12a6a15a06c.zip
Entity build: test for enabled in post_op
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/entity.js')
-rw-r--r--install/ui/src/freeipa/entity.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/entity.js b/install/ui/src/freeipa/entity.js
index 60dcd912a..e0e5182b0 100644
--- a/install/ui/src/freeipa/entity.js
+++ b/install/ui/src/freeipa/entity.js
@@ -461,6 +461,11 @@ exp.entity_post_ops = {
init: function(entity, spec, context) {
+ if (typeof spec.enable_test === 'function') {
+ if (!spec.enable_test()) throw {
+ expected: true
+ };
+ }
if (entity.init) {
entity.init(spec, context);
}