Skip to content

Commit

Permalink
fixes #8685 - include netmask in ENC output
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Cleal committed Dec 15, 2014
1 parent 287d974 commit 99dc10e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/subnet.rb
Expand Up @@ -234,7 +234,7 @@ def ensure_ip_addr_new
private

def enc_attributes
@enc_attributes ||= %w(name network netmask gateway dns_primary dns_secondary from to boot_mode ipam)
@enc_attributes ||= %w(name network mask gateway dns_primary dns_secondary from to boot_mode ipam)
end


Expand Down
2 changes: 2 additions & 0 deletions test/unit/host_test.rb
Expand Up @@ -506,6 +506,7 @@ def teardown
[{"network"=>"2.3.4.0",
"name"=>"one",
"gateway"=>nil,
"mask"=>"255.255.255.0",
"dns_primary"=>nil,
"dns_secondary"=>nil,
"from"=>nil,
Expand All @@ -523,6 +524,7 @@ def teardown
"identifier"=>nil,
"managed"=>true,
"subnet"=> {"network"=>"2.3.4.0",
"mask"=>"255.255.255.0",
"name"=>"one",
"gateway"=>nil,
"dns_primary"=>nil,
Expand Down

0 comments on commit 99dc10e

Please sign in to comment.