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

local variable 'identifier' referenced before assignment #7

Open
stiewie33 opened this issue Apr 18, 2019 · 5 comments
Open

local variable 'identifier' referenced before assignment #7

stiewie33 opened this issue Apr 18, 2019 · 5 comments

Comments

@stiewie33
Copy link
Contributor

Hey all, having some issues with the action alias for this pack, had to add a parameter to specify the scheduleIdentifierType and scheduleIdentifier as input from a chatops system, when working from the st2 UI I am able to specify those parameters, however, it looks like the action alias was never updated for v2 perhaps?

@MeralBusraTekinsen
Copy link
Collaborator

Hi @stiewie33,
which action do you want to update? We could not get it truly. If you want to customize the action, you have to register an individual action by calling st2 action create my_action_metadata.yaml. To reload all actions, you need to use st2ctl reload --register-actions . If we got you wrong, please ping us again.

@stiewie33
Copy link
Contributor Author

Sorry, it's the get on call list action alias :) It fails when just running as is via slack, however after adding scheduleIdentifierType and scheduleIdentifier to the action alias as required parameters it worked.

@LindsayHill
Copy link
Contributor

after adding scheduleIdentifierType and scheduleIdentifier to the action alias as required parameters it worked.

@stiewie33 could you submit a PR with that change, so others can benefit?

@stiewie33
Copy link
Contributor Author

Sure, I'm wondering though, I only have an API key for one of our many schedules, maybe that could be the cause of the alias not functioning properly... I'll look into it some more before submitting a PR

@stiewie33
Copy link
Contributor Author

Doesn't seem to be the restricted API key. I'll submit a PR

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

No branches or pull requests

3 participants