Skip to content

Commit

Permalink
Add some checks for later
Browse files Browse the repository at this point in the history
  • Loading branch information
windley committed Aug 15, 2014
1 parent 94bf47e commit 6415eb2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/fuse_bootstrap.krl
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ ruleset fuse_bootstrap {
namespace = "fuse-meta"; // this is defined in fuse_common.krl, but we haven't got it yet.
eci = CloudOS:subscriptionList(namespace,"Fleet").head().pick("$.eventChannel")
|| pds:get_item(namespace,"fleet_channel");
installed = CloudOS:rulesetList(meta:eci()).pick("$.rids").join(",").klog(">>>> rids >>>> ");
no_init = not installed.match(re#owner|16x16#).klog(">>>> seeing an init ruleset >>>>");


}
if (! eci.isnull() ) then
Expand All @@ -62,6 +61,11 @@ ruleset fuse_bootstrap {
select when explicit bootstrap_needed
pre {
remove_rulesets = CloudOS:rulesetRemoveChild(apps{"unwanted"}, meta:eci());

// not using yet
already_installed = CloudOS:rulesetList(meta:eci()).pick("$.rids").join(",").klog(">>>> rids >>>> ");
no_init = not already_installed.match(re#owner|16x16#).klog(">>>> seeing an init ruleset >>>>");

installed = CloudOS:rulesetAddChild(apps{"core"}, meta:eci());
account_profile = CloudOS:accountProfile();
profile = {
Expand Down

0 comments on commit 6415eb2

Please sign in to comment.