default state to 'up'

git-svn-id: file:///home/svn/framework3/trunk@8253 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-01-27 04:48:27 +00:00
parent 5b0cdc2349
commit 8be92ab010
1 changed files with 3 additions and 0 deletions

View File

@ -275,6 +275,9 @@ class DBManager
dlog("Unknown attribute for Service: #{k}")
end
}
if (service.state == nil)
service.state = "up"
end
if (service and service.changed?)
service.created = Time.now
service.save!