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

added support for osname property #330

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pradeepbansal00
Copy link

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 85.469% when pulling b3377f0 on pradeepbansal00:osname into 1cdee21 on nebula-plugins:master.

Copy link
Member

@rpalcolea rpalcolea left a comment

Choose a reason for hiding this comment

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

Hi @pradeepbansal00!

First at all, thanks for your contribution.

What's the motivation behind adding osName and not using existing os?

Also, could you add tests around this?

Looking forward to hear from you

@pradeepbansal00
Copy link
Author

Hi @rpalcolea ,
Nebula ospackage plugin's 'os' property is based on an enum, and it only accepts values from that enum, so 'aix' is acceptable, but 'aix7.1' is not. Meanwhile the rpmrc on AIX specifies a list of acceptable OS strings, all of which are 'aix' plus an OS version, and 'aix' without a version is not an acceptable string.

So we modified the ospackage plugin to add a new 'osName' property that takes a string instead, and tweaked logic a little so it uses 'osName' for the OS string if it's set, otherwise it uses 'os'

Regarding unit test, i will see if i can add some UT around osName

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.

None yet

3 participants