Merge ~dnegreira/stsstack-bundles:resources-renderer into stsstack-bundles:master

Proposed by David Negreira
Status: Merged
Merged at revision: a5d56dcff8bab9fdfaebfadb19072333835199a6
Proposed branch: ~dnegreira/stsstack-bundles:resources-renderer
Merge into: stsstack-bundles:master
Diff against target: 15 lines (+1/-1)
1 file modified
common/generate_bundle_base (+1/-1)
Reviewer Review Type Date Requested Status
Edward Hope-Morley Approve
Review via email: mp+415197@code.launchpad.net

Description of the change

We are not including the common/render.d/resources anywhere in the code, so the function render_resources_path() its not available when necessary.
This change aims to add it to render_resources_path() function to common/render.d/all to ensure its loaded and used when necessary.

To post a comment you must log in.
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Hi david, thanks for submitting this patch. Your approach does fix it but actually the correct way is:

diff --git a/common/generate_bundle_base b/common/generate_bundle_base
index abf49e6..4ab1472 100644
--- a/common/generate_bundle_base
+++ b/common/generate_bundle_base
@@ -79,10 +79,10 @@ fi
 RENDER_PARTS_DIR=$bundles_dir/parts
 mkdir -p $RENDER_PARTS_DIR
 . $MOD_DIR/common/render.d/all
+. $MOD_DIR/common/render.d/resources
 if ${MASTER_OPTS[HYPERCONVERGED_DEPLOYMENT]}; then
     PLACEMENT_OVERLAYS_DIR=$bundles_dir/p
     mkdir -p $PLACEMENT_OVERLAYS_DIR
- . $MOD_DIR/common/render.d/resources
     . $MOD_DIR/common/render.d/unit_placement
 fi

review: Needs Fixing
Revision history for this message
David Negreira (dnegreira) wrote :

Hi Ed, thanks for your comment, I fixed it as suggested and did a force-push

Revision history for this message
Edward Hope-Morley (hopem) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/common/generate_bundle_base b/common/generate_bundle_base
2index abf49e6..4ab1472 100644
3--- a/common/generate_bundle_base
4+++ b/common/generate_bundle_base
5@@ -79,10 +79,10 @@ fi
6 RENDER_PARTS_DIR=$bundles_dir/parts
7 mkdir -p $RENDER_PARTS_DIR
8 . $MOD_DIR/common/render.d/all
9+. $MOD_DIR/common/render.d/resources
10 if ${MASTER_OPTS[HYPERCONVERGED_DEPLOYMENT]}; then
11 PLACEMENT_OVERLAYS_DIR=$bundles_dir/p
12 mkdir -p $PLACEMENT_OVERLAYS_DIR
13- . $MOD_DIR/common/render.d/resources
14 . $MOD_DIR/common/render.d/unit_placement
15 fi
16

Subscribers

People subscribed via source and target branches