Skip to content

Commit

Permalink
cope with new staging prjs
Browse files Browse the repository at this point in the history
they do not have a bootstrap-copy build result the very first time
  • Loading branch information
coolo committed Aug 7, 2014
1 parent 2e2a578 commit 80bc61f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osclib/freeze_command.py
Expand Up @@ -92,7 +92,10 @@ def verify_bootstrap_copy_codes(self, codes):
root = ET.parse(self.api.retried_GET(url)).getroot()
for result in root.findall('result'):
if result.get('repository') == 'bootstrap_copy':
if not result.find('status').get('code') in codes:
status = result.find('status')
if status == None:
return False
if not status.get('code') in codes:
return False
return True

Expand Down

0 comments on commit 80bc61f

Please sign in to comment.