Skip to content

Commit

Permalink
Load Project Fix / 4.9 update
Browse files Browse the repository at this point in the history
  • Loading branch information
fdevans committed Jan 12, 2023
1 parent 770e7da commit 274ea18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Set pro options if applicable
RUNDECK_IMAGE=rundeck/rundeck:4.8.0
RUNDECK_IMAGE=rundeck/rundeck:4.9.0
RUNDECK_USER=admin
RUNDECK_PASSWORD=admin
13 changes: 6 additions & 7 deletions client/rundeck-cli/src/commands/loadProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,16 @@ builder(yargs: Argv) {
const username = opts.username
const password = opts.password

const rundeckAuth = await runeckLoginToken(rundeckUrl, username, password)
const token = rundeckAuth["token"]
const client = rundeckAuth["client"]

console.log("Waiting for Rundeck");
await createWaitForRundeckReady(
() => new Rundeck(new PasswordCredentialProvider(rundeckUrl, username, password), {noRetryPolicy: true, baseUri: rundeckUrl}),
5 * 60 * 1000
);
);
console.info(`Client connected.`)

console.log("Rundeck started!!!");
const rundeckAuth = await runeckLoginToken(rundeckUrl, username, password)
const token = rundeckAuth["token"]
const client = rundeckAuth["client"]

console.log("----------------------------------");
console.log("Importing keys");
Expand Down Expand Up @@ -192,7 +191,7 @@ builder(yargs: Argv) {
var projectImport = false;
try{
const resp = await createProject(client, project_name);

console.log(resp)
if(resp.error){
console.error("Error creating project");
console.error(resp.message);
Expand Down

0 comments on commit 274ea18

Please sign in to comment.