When deploy_arn is not defined in the Gruntfile the value is undefined#60
Closed
procedurallygenerated wants to merge 1 commit intoTim-B:masterfrom
Closed
When deploy_arn is not defined in the Gruntfile the value is undefined#60procedurallygenerated wants to merge 1 commit intoTim-B:masterfrom
procedurallygenerated wants to merge 1 commit intoTim-B:masterfrom
Conversation
Owner
|
Hi Varun, thanks for the pull request! Does this cause a bug of some sort? I don't think 0, "" or null are valid ARNs, so would it be best to fall back to FunctionName in those cases? |
Author
|
That's right. My Gruntfile currently looks like this, Since the deploy_arn is not set in the grunt file the value of deploy_arn is Switching the check to fails on all false values fixes this issue. |
Owner
|
Thanks for reporting this issue, it will be fixed in the next release. I've also added unit tests to validate this use case. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I use the FunctionName to deploy the code. The deploy_arn is undefined for me at this point.
Why don't we just check if the the deploy_arn is true. It cannot be 0, "", null or undefined anyway.