integ/config/facter/centos/patches/0001-ps.patch
slin14 f09e564ffa de-fuzz facter patch
With rpm version < 4.13, patch cmd will create .orig file for fuzzy
patch in default. And this .orig file may lead to rpmbuild failure
"error: Installed (but unpackaged) file(s) found:"

Please visit below link to get more detail info:
https://bugs.launchpad.net/starlingx/+bug/1794611

Story: 2003917
Task: 26966

Change-Id: I7ec6cfad50a4b88de3f8a989fbe04dea14456114
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-10-09 23:00:20 +08:00

30 lines
813 B
Diff

diff --git a/lib/facter/ps.rb b/lib/facter/ps.rb
index 9163519..02117ac 100644
--- a/lib/facter/ps.rb
+++ b/lib/facter/ps.rb
@@ -12,7 +12,7 @@
#
Facter.add(:ps) do
- setcode do 'ps -ef' end
+ setcode do 'ps -efww' end
end
Facter.add(:ps) do
diff --git a/spec/unit/ps_spec.rb b/spec/unit/ps_spec.rb
index 2e25a4b..20c61af 100755
--- a/spec/unit/ps_spec.rb
+++ b/spec/unit/ps_spec.rb
@@ -27,9 +27,9 @@ describe "ps facts" do
'RedHat',
'Debian',
].each do |os|
- it "should return gnu/linux style ps -ef on operatingsystem #{os}" do
+ it "should return gnu/linux style ps -efww on operatingsystem #{os}" do
Facter.fact(:operatingsystem).stubs(:value).returns os
- Facter.fact(:ps).value.should == 'ps -ef'
+ Facter.fact(:ps).value.should == 'ps -efww'
end
end