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

Create a scope for items not scheduled for retirement #1

Merged

Conversation

bdunne
Copy link

@bdunne bdunne commented Jul 26, 2017

No description provided.

Define the scope in the RetirementMixin
@d-m-u d-m-u merged commit 9ad76a3 into d-m-u:merge-retirement-checks Jul 26, 2017
@bdunne bdunne deleted the not_scheduled_for_retirement_scope branch July 26, 2017 15:36
d-m-u pushed a commit that referenced this pull request Aug 15, 2019
Only accept `Hash` results when parsing JSON.  Other related models
expect an array of hashes when working with `#parsed_stdout`, so if the
digested stdout output includes lines that like the following:

- "some output"
- 12345

They will still be parsed properly by `JSON.parse`, but methods
expecting a `["stdout"]` key from each of the results in the array will
result in an error.

The downside of this approach is that this ends up leading to output
missing from the digested result, so for example:

    # Sample artifacts/result/stdout
    {"uuid": "9dc88a31-...", "counter": 1, "stdout": ""}
    {"uuid": "9dc88a31-...", "counter": 2, "stdout": "\r\nPLAY [List Variables] **********..."}
    32m       "aw",[0m
    [0;32m    "geeze",[0m
    [0;32m    "some",[0m
    [0;32m    "playbook",[0m
    [0;32m    "output",[0m
    [0;32m    "leaked..."[0m
    [0;32m  ],[0m
    [0;32m  [[0m
    [0;32m    12345,[0m
    [0;32m    23456[0m
    [0;32m  ],[0m{"uuid": "9dc88a31-...", "counter": 3, "stdout": ""[0;32m{[0m [0;32m  [[0m [0;32m       \"aw\",[0m [0;32m    \"geeze\",[0m...""}
    {"uuid": "9dc88a31-...", "counter": 4, "stdout": "\r\nPLAY RECAP **********..."}

Where the second to last line is partial content from the "leaked"
stdout and the next line of json that contained the next section of
content.  This will be addressed more in follow up commits.
d-m-u pushed a commit that referenced this pull request Sep 26, 2019
Handle case where instance flavor is deleted
(cherry picked from commit b7c9e492e2bc4619a00cbc64e53879e03568cc0e)

https://bugzilla.redhat.com/show_bug.cgi?id=1442764
d-m-u pushed a commit that referenced this pull request Sep 26, 2019
Write repmgr conf and pgpass when configuring a primary database server
(cherry picked from commit 3f676e09f62766050302ebd27c6e2c623e58bfbc)

https://bugzilla.redhat.com/show_bug.cgi?id=1450508
d-m-u pushed a commit that referenced this pull request Jan 21, 2021
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

Successfully merging this pull request may close these issues.

2 participants