fix return value for get_run_details

This commit is contained in:
worm 2023-01-02 13:15:40 -08:00
parent 1a29b57538
commit 606b56c49d
3 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,6 @@
// These parameters are all optional.
// token will use the environment $TOKEN (must be exported) if unspecified
// token will use the environment $TOKEN (must be exported) if unspecified.
// using the environment variable is the recommended way to declare your token
// downloadDir will use the current directory if unspecified
// base_url will use app.terraform.io if unspecified

View file

@ -3,4 +3,10 @@ import { get_run_details } from "./tfc-api-functions.mjs";
const my_config = normalized_config;
console.log(my_config)
// console.log(my_config);
console.log(process.argv.slice(2));
const response = await get_run_details(my_config.base_url, process.argv.slice(2), my_config.token);
//console.log(response);

View file

@ -9,4 +9,5 @@ export const get_run_details = async (base_url, run_id, token) => {
headers: {Authorization :`Bearer ${token}`},
}
);
return response;
};