Skip to content

Commit

Permalink
Fixing tests for System create
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Smart committed Oct 20, 2011
1 parent f72d3d2 commit 2d2aa4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/models/glue/candlepin/consumer.rb
Expand Up @@ -172,6 +172,7 @@ def arch
end

def arch=(arch)
@facts ||= {}
facts["uname.machine"] = arch
end

Expand All @@ -180,6 +181,7 @@ def sockets
end

def sockets=(sock)
@facts ||= {}
facts["cpu.cpu_socket(s)"] = sock
end

Expand All @@ -188,12 +190,14 @@ def guest
end

def guest=(val)
@facts ||= {}
facts["virt.is_guest"] = val

end

def name=(val)
super(val)
@facts ||= {}
facts["network.hostname"] = val
end

Expand Down

0 comments on commit 2d2aa4d

Please sign in to comment.