Skip to content

New Parameter DurationSeconds#11

Open
thomasmkt wants to merge 2 commits intoNearlyUnique:masterfrom
thomasmkt:master
Open

New Parameter DurationSeconds#11
thomasmkt wants to merge 2 commits intoNearlyUnique:masterfrom
thomasmkt:master

Conversation

@thomasmkt
Copy link

Support of setting the duration of validity of the aws credentials as parameter

} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
journal("Unable to resolve account alias", err.Error())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why don't you keep the error?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was my first try to use go and my IDE said that there are to much Parameters used in method journal, so I deleted it ;-)

"net/http/httptest"
"testing"

"github.com/NearlyUnique/awsSts/cmd"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it was more common to use std pks at the top then others?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was my first try to use go ;-)

if err == nil {
f.Close()
} else {
fatalExitf(err, "Failed to create required file", filePath)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why ignore the extra filePath info?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was my first try to use go and my IDE said that there are to much Parameters used in method fatalExitf, so I deleted it ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants