bug #1641: Bug detecting an object from parameters (network or disk)

(cherry picked from commit 13391ab282)
This commit is contained in:
Javi Fontan committed 2012-12-20 17:30:05 +01:00
1 parent c19004041d
commit 446604396e
1 file changed
+1 -1
+1 -1
View File
@@ -557,7 +557,7 @@ EOT
template<<"#{section.upcase}=[\n"
template<<" #{name.upcase}_UNAME=\"#{user}\",\n" if user
if object.match(/^\d$/)
if object.match(/^\d+$/)
template<<" #{name.upcase}_ID=#{object}\n"
else
template<<" #{name.upcase}=\"#{object}\"\n"