Skip to content

Commit

Permalink
maintain container info pertaining to env vars rockstor#1588
Browse files Browse the repository at this point in the history
Add container dimension to Rock-on input environment during
Rock-on install wizard front-end. Cheery picked from anatox's
prior work on GitHub.
  • Loading branch information
phillxnet committed Aug 12, 2024
1 parent eab4ed5 commit 3275aac
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,11 @@ RockonEnvironment = RockonCustomChoice.extend({
}
var env_map = {};
var envars = this.custom_config.filter(function(cvar) {
env_map[cvar.get('key')] = this.$('#' + cvar.id).val();
co_id = cvar.get('container');
if(env_map[co_id] == undefined) {
env_map[co_id] = {};
}
env_map[co_id][cvar.get('key')] = this.$('#' + cvar.id).val();
return cvar;
}, this);
this.model.set('env_map', env_map);
Expand Down

0 comments on commit 3275aac

Please sign in to comment.