Signed-off-by: James Turnbull ja...@lovedthanlost.net
---
lib/facter/memory.rb | 14 +-
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/lib/facter/memory.rb b/lib/facter/memory.rb
index f0f0d45..94769d0 100644
--- a/lib/facter/memory.rb
+++ b/lib/facter/memory.rb
@@
On 10 June 2010 07:16, James Turnbull ja...@lovedthanlost.net wrote:
Signed-off-by: James Turnbull ja...@lovedthanlost.net
-1
Hmm, there are a whole bunch of facts/commands that require root or
behave differently. I'd rather see this implemented as a confine.
---
lib/facter/memory.rb |
I think it simply could detect that the command (swap -l ) failed and
raise an exception with the output (or first line of the output).
Now it fails with a nil access error, I had to see the code to
determine that the problem was that I was running facter as a normal
user and 'swap -l' was
2010/6/10 Héctor Rivas Gándara key...@gmail.com:
I think it simply could detect that the command (swap -l ) failed and
raise an exception with the output (or first line of the output).
Potentially yes, we should change how util.exec works and enable
logging to user/exception passing to lib