Skip to content

added support for osname property#330

Open
pradeepbansal00 wants to merge 1 commit into
nebula-plugins:mainfrom
pradeepbansal00:osname
Open

added support for osname property#330
pradeepbansal00 wants to merge 1 commit into
nebula-plugins:mainfrom
pradeepbansal00:osname

Conversation

@pradeepbansal00

Copy link
Copy Markdown

No description provided.

@coveralls

Copy link
Copy Markdown

Coverage Status

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

@rpalcolea rpalcolea left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

3 participants