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

Email instances for Cloud and Infrastructure retirement. #304

Merged
merged 1 commit into from
May 25, 2018

Conversation

billfitzgerald0120
Copy link
Contributor

Added 11 instances in System/Notification/Email class for retirement.

3 for Cloud Orchestration retirement
4 for Cloud Vm retirement
4 for Infrastructure VM retirement

Modified 2 System instances to use new email instances.
Appended ${/Configuration/Email/Default#default_recipient}" in 'to' field

https://bugzilla.redhat.com/show_bug.cgi?id=1314871
https://www.pivotaltracker.com/epic/show/3861726

@billfitzgerald0120
Copy link
Contributor Author

@miq-bot add_label enhancement

Added 11 instances in System/Notification/Email class for retirement.

3 for Cloud Orchestration retirement
4 for Cloud Vm retirement
4 for Infrastructure VM retirement

Modified 2 System instances to use new email instances.
Appended  ${/Configuration/Email/Default#default_recipient}" in 'to' field
Changed some of the syntax in the email subject and body.
Will add attachment.
@miq-bot
Copy link
Member

miq-bot commented May 25, 2018

Checked commit billfitzgerald0120@784de18 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@billfitzgerald0120
Copy link
Contributor Author

image

value: "${/#vm.owner.email} ||${/#miq_request.get_option(:owner_email)} || ${/#miq_request.requester.email}
|| ${/Configuration/Email/Default#default_recipient}"
- subject:
value: Stack <${/#orchestration_stack.name}> has entered retirement.
Copy link
Contributor

Choose a reason for hiding this comment

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

@billfitzgerald0120 I think this can be just ${/#orchestration_stack} instead of ${/#orchestration_stack.name}

value: "${/#vm.owner.email} || ${/#miq_request.get_option(:owner_email)} ||
${/#miq_request.requester.email} || ${/Configuration/Email/Default#default_recipient}"
- subject:
value: 'Stack Retirement Alert for : ${/#orchestration_stack}.'
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@mkanoor mkanoor merged commit 809feba into ManageIQ:master May 25, 2018
@mkanoor mkanoor added this to the Sprint 87 Ending Jun 4, 2018 milestone May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants