-
Notifications
You must be signed in to change notification settings - Fork 42
simplify aix_chsec
#59
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Good work \o/. Thank you :). |
libraries/helpers.rb
Outdated
'xpdf' => { version: '1.00-1', rpm: 'xpdf/xpdf-1.00-1.aix4.3.ppc.rpm' }, | ||
'xpm-devel' => { version: '3.4k-8', rpm: 'xpm/xpm-devel-3.4k-8.aix6.1.ppc.rpm' }, | ||
'xpm' => { version: '3.4k-8', rpm: 'xpm/xpm-3.4k-8.aix5.2.ppc.rpm' }, | ||
# 'xpm' => { version: '3.4k-8', rpm: 'xpm/xpm-3.4k-8.aix5.2.ppc.rpm' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason this was commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my testing it would cause Ruby to complain about useless hash redefinitions, which is correct, no? You cannot have the same hash key twice, the last defined will be the only one used. (note that the 'xpm' key is defined twice in there).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still had a terminal with the offending output, here's a snippet of what I was seeing (in rspec):
tests::remote_chef_gem
aix 6.1
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
Please report a bug if this causes problems.
cleanup dummies
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
downloads and installs dummy gem
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
downloads and upgrades dummy gem
aix 7.1
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
cleanup dummies
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
downloads and installs dummy gem
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
downloads and upgrades dummy gem
redhat 7.0
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
cleanup dummies
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
downloads and installs dummy gem
/tmp/chefspec20161104-26989-lxarfile_cache_path/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
downloads and upgrades dummy gem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same behaviour xpm key is duplicated
One must be removed (not commented)
Installing Cookbook Gems:
Compiling Cookbooks...
/var/cache/chef/cookbooks/aix/libraries/helpers.rb:357: warning: key "xpm" is duplicated and overwritten on line 358
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate keys removed as requested Is there something else wrong here @chmod666org or @tas50 . I'll fix whatever is necessary, my fork has been working well on my AIX systems. Is anything wrong
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
Signed-off-by: Jeremy Chalfant <jchalfan@us.ibm.com>
So I'm a jerk and totally blew off fixing this. I've rebased on current master and eliminated the duplicate key. Please review and comment. Thanks! |
Will this suffice or would you prefer we leave the duplicate key in place? |
@foobarbam Sorry for the late response here, but if you want to rebase this I'll get it merged in. |
Description
aix_chsec
resource to utilize AIX tooling for inspection of current values.aix_chsec
bug in cases where resource'sname
doesn't match the properfile_name
.previous code used
::File.exist?(new_resource.name)
instead of::File.exist?(file_name)
attributes
andstanza
properties required foraix_chsec
Issues Resolved
see above, non-documented but experienced in local testing
Check List