Skip to content

Commit

Permalink
0.5.3b2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
vadv committed Jan 21, 2013
1 parent 9fc0eaa commit b161759
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/zabbixapi/1.8/classes/screens.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def get_or_create_for_host(data)
valign = data[:valign] || 2
halign = data[:halign] || 2
vsize = data[:vsize] || ((graphids.size/hsize) + 1).to_i
if get_id(:name => screen_name)
delete(:name => screen_name)
if screenid = get_id(:name => screen_name)
delete(:screenids => [screenid])
end
# create screan
graphids.each_with_index do |graphid, index|
Expand All @@ -55,7 +55,7 @@ def get_or_create_for_host(data)
:halign =>halign
}
end

create(
:name => screen_name,
:hsize => hsize,
Expand Down
2 changes: 1 addition & 1 deletion lib/zabbixapi/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class ZabbixApi
VERSION = "0.5.3b1"
VERSION = "0.5.3b2"
end

0 comments on commit b161759

Please sign in to comment.