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

Piping an alias into other commands fails #1166

Closed
kevsmith opened this issue Nov 18, 2016 · 1 comment
Closed

Piping an alias into other commands fails #1166

kevsmith opened this issue Nov 18, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@kevsmith
Copy link
Member

Given prod-buckets is alias for the pipeline s3:list-buckets --region=us-east-1 corp-prod-* | s3:bucket-info $name:

> prod-buckets | s3:file-info $key

     ** (KeyError) key :redir not found in: %Piper.Command.Ast.PipelineStage{col: 80, 
                                             left: %Piper.Command.Ast.Invocation{...}
@kevsmith kevsmith added the piper label Nov 18, 2016
@kevsmith kevsmith added this to the Cog 0.17 milestone Nov 18, 2016
@kevsmith kevsmith self-assigned this Nov 18, 2016
@kevsmith
Copy link
Member Author

kevsmith commented Nov 18, 2016

This happens because Piper.Command.Ast.PipelineStage:new/3 fails to detect the case where two chains of PipelineStages are being concatenated. This results in an incorrectly constructed stage where the left field points to another PipelineStage instead of an Ast.Invocation as it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant