File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
335335 data ['wipe' ][0 ])
336336 self .wfile .write (json .dumps ({'result' : result }))
337337 write_lock .release ()
338- if data [ 'extnet' ] :
338+ if 'extnet' in data :
339339 vlans_conf = os .path .dirname (__file__ ) + "/../conf/vlans.yml"
340340
341341 try :
@@ -346,7 +346,7 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
346346 print "quads: Invalid YAML config: " + vlans_conf
347347 exit (1 )
348348 for vlan , properties in vlans .iteritems ():
349- if data ["extnet" ] == properties ["id" ]:
349+ if int ( data ["extnet" ][ 0 ]) == properties ["id" ]:
350350 properties ["cloud" ] = data ['cloud' ][0 ]
351351 properties ["owner" ] = data ['owner' ][0 ]
352352 properties ["ticket" ] = data ['ticket' ][0 ]
@@ -360,10 +360,10 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
360360 if not os .path .exists (vlans_dir ):
361361 os .makedirs (vlans_dir )
362362 stub = os .path .join (vlans_dir , "%s-vlan%s-%s-%s" % (
363- data ["cloud" ],
364- data ["extnet" ],
365- data ["owner" ],
366- data ['ticket' ],
363+ data ["cloud" ][ 0 ] ,
364+ data ["extnet" ][ 0 ] ,
365+ data ["owner" ][ 0 ] ,
366+ data ['ticket' ][ 0 ] ,
367367 ))
368368 if not os .path .exists (stub ):
369369 with open (stub , "a" ) as _ :
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function validate_environment() {
139139 touch $data_dir /release/${env} -${owner} -${ticket}
140140 if [ -f $data_dir /release/.failreport.${env} -${owner} -${ticket} ]; then
141141 for file in $data_dir /vlans/${env} * ; do
142- if ! find $file & > /dev/null ; then
142+ if [ ! -f $file ] ; then
143143 report_success $env $owner $ticket
144144 fi ;
145145 done
You can’t perform that action at this time.
0 commit comments