Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidOperationException: Sequence contains no elements when no resource change #73

Closed
fireflycons opened this issue Sep 18, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@fireflycons
Copy link
Owner

On running stack update, if there are no resources changed, e.g. only outputs have been changed, then this exception is thrown

@fireflycons fireflycons added the bug Something isn't working label Sep 18, 2020
@fireflycons fireflycons self-assigned this Sep 18, 2020
@fireflycons
Copy link
Owner Author

Tracked to PSLogger.LogChangeset

Method need the following at the beginning

if (!changes.Changes.Any())
{
    this.LogInformation("No changes to stack resources. Other changes such as Outputs may be present.");
    return new Dictionary<string, int>();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant