Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

(FACT-2602) Add docker/Lxc resolver for Linux#520

Merged
BogdanIrimie merged 1 commit intomasterfrom
FACT-2602
May 18, 2020
Merged

(FACT-2602) Add docker/Lxc resolver for Linux#520
BogdanIrimie merged 1 commit intomasterfrom
FACT-2602

Conversation

@oanatmaria
Copy link
Copy Markdown
Contributor

No description provided.

@oanatmaria oanatmaria requested review from a team May 15, 2020 13:49
Comment thread lib/resolvers/docker_lxc.rb Outdated
def read_cgroup(fact_name)
output_cgroup = Util::FileHelper.safe_read('/proc/1/cgroup', nil)
output_environ = Util::FileHelper.safe_read('/proc/1/environ', nil)
return if !output_cgroup || !output_environ
Copy link
Copy Markdown
Contributor

@BogdanIrimie BogdanIrimie May 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if output_cgroup.nil? || output_environ.nil?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread lib/facts/linux/hypervisors.rb
@BogdanIrimie BogdanIrimie merged commit af8a25a into master May 18, 2020
@BogdanIrimie BogdanIrimie deleted the FACT-2602 branch May 18, 2020 08:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants