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

Support old "supports" field in metadata #347

Merged
merged 1 commit into from
Jan 5, 2016

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Jan 5, 2016

current compliance-profiles still have

supports:
  - linux

and we might want to be a little backwards compatible, too.

⚠️ the logging does not work there, needs investigation.

WIP because tests are missing

@srenatus srenatus added the Type: Bug Feature not working as expected label Jan 5, 2016
@chris-rock
Copy link
Contributor

👍

@@ -74,6 +71,21 @@ def is_supported(os, entry)
name_ok && family_ok && release_ok
end

def support_fields(entry)
@logger.warn("logging")
Copy link
Contributor

Choose a reason for hiding this comment

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

one littel debugging call left ^^

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ach...

current compliance-profiles still have

```yaml
supports:
  - linux
```

and we might want to be a little backwards compatible, too.
@arlimus
Copy link
Contributor

arlimus commented Jan 5, 2016

Thank you @srenatus , this fixes our migration issues.

arlimus added a commit that referenced this pull request Jan 5, 2016
WIP support old "supports" field in metadata
@arlimus arlimus merged commit a213980 into master Jan 5, 2016
@arlimus arlimus deleted the sr/backwards-compatible-supports branch January 5, 2016 22:03
@arlimus
Copy link
Contributor

arlimus commented Jan 5, 2016

Small clarification: We haven't had an official handling on supports until the recent pinning in #344 . Since there was still a backdrop to the old mode, we don't want to just silentry drop it, just because it wasn't specified yet. The old way is still deprecated, but it won't break inspec from running.

@srenatus
Copy link
Contributor Author

srenatus commented Jan 6, 2016

@arlimus thanks for fixing that up before the merge. :)

@chris-rock chris-rock changed the title WIP support old "supports" field in metadata Support old "supports" field in metadata Jan 6, 2016
@chris-rock chris-rock added this to the 0.9.8 milestone Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants