Skip to content

Commit

Permalink
api: remove outdated platform check in Vps::OsTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed Nov 21, 2024
1 parent ac15f35 commit 4b8aefd
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions api/models/transactions/vps/os_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,16 @@ def params(vps, orig, os_template)
self.vps_id = vps.id
self.node_id = vps.node_id

if vps.node.vpsadminos?
{
new: {
distribution: os_template.distribution,
version: os_template.version
},
original: {
distribution: orig.distribution,
version: orig.version
}
{
new: {
distribution: os_template.distribution,
version: os_template.version
},
original: {
distribution: orig.distribution,
version: orig.version
}
else
{
os_template: os_template.name,
original: orig.name
}
end
}
end
end
end

0 comments on commit 4b8aefd

Please sign in to comment.