Created
August 1, 2018 17:00
-
-
Save jrich523/f09db4d657eca565d82a974b28abf1df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cpus | |
return @foreman_host.cpus unless @foreman_host.cpus.nil? | |
return @puppet_guest.cpus unless @puppet_guest.cpus.nil? | |
raise "#{hostname.to_s} doesn't have a foreman_host/puppet_guest to determine cpus" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment