1
Fork 0

Drop os.path.exists

This commit is contained in:
Andrew Pilloud 2015-07-15 17:48:54 -07:00
parent b63b1309f1
commit daa06ab65e
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class EC2LatentBuildSlave(AbstractLatentBuildSlave):
aws_id_file_path = os.path.join(home, '.ec2', 'aws_id')
if not os.path.exists(aws_id_file_path):
aws_id_file_path = None
if aws_id_file_path and os.path.exists(aws_id_file_path):
if aws_id_file_path:
log.msg('WARNING: EC2LatentBuildSlave is using deprecated '
'aws_id file')
with open(aws_id_file_path, 'r') as aws_file: