Drop os.path.exists
This commit is contained in:
parent
b63b1309f1
commit
daa06ab65e
|
@ -109,7 +109,7 @@ class EC2LatentBuildSlave(AbstractLatentBuildSlave):
|
||||||
aws_id_file_path = os.path.join(home, '.ec2', 'aws_id')
|
aws_id_file_path = os.path.join(home, '.ec2', 'aws_id')
|
||||||
if not os.path.exists(aws_id_file_path):
|
if not os.path.exists(aws_id_file_path):
|
||||||
aws_id_file_path = None
|
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 '
|
log.msg('WARNING: EC2LatentBuildSlave is using deprecated '
|
||||||
'aws_id file')
|
'aws_id file')
|
||||||
with open(aws_id_file_path, 'r') as aws_file:
|
with open(aws_id_file_path, 'r') as aws_file:
|
||||||
|
|
Loading…
Reference in New Issue