Address comments
This commit is contained in:
parent
aa53f64b85
commit
cd7eedd4a5
8 changed files with 20 additions and 7 deletions
2
lib/actions-util.js
generated
2
lib/actions-util.js
generated
|
|
@ -363,7 +363,7 @@ exports.getAutomationID = getAutomationID;
|
|||
function computeAutomationID(analysis_key, environment) {
|
||||
let automationID = `${analysis_key}/`;
|
||||
// the id has to be deterministic so we sort the fields
|
||||
if (environment !== undefined && environment !== "null") {
|
||||
if (environment) {
|
||||
const environmentObject = JSON.parse(environment);
|
||||
for (const entry of Object.entries(environmentObject).sort()) {
|
||||
if (typeof entry[1] === "string") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue