我是Ruby和Chef的新手,正在尝试编写一本食谱,在启用ACL的情况下重新挂载根文件系统。Ohai正在使用所有挂载的文件系统填充node['filesystem']。如何具体查找node['filesystem'] where node['filesystem'][:item]['mount'] == '/'下的所有项目
今天,我遇到了一个有趣的问题:当对散列数组进行排序时,如果出现错误comparison of Hash with Hash failed,它就会失败。示例:h2 = {a:1, b:3}
[h1, h2].sort ArgumentError: comparison of Hash with Hash failed