Esempio n. 1
0
 def _try_read_credential_file(self, parameter_pool, location, source):
     func_matrix = []
     for param in CredentialFileParameters:
         if not parameter_pool.has(param[0]):
             func_matrix.append((param[0], param[1]))
     config_file.read_aws_credential_file(location, parameter_pool, 
                                          func_matrix, source, True)
Esempio n. 2
0
 def _try_read_credential_file(self, parameter_pool, location, source):
     func_matrix = []
     for param in CredentialFileParameters:
         if not parameter_pool.has(param[0]):
             func_matrix.append((param[0], param[1]))
     config_file.read_aws_credential_file(location, parameter_pool,
                                          func_matrix, source, True)
Esempio n. 3
0
 def _try_read_credential_file(self, parameter_pool, location, source):
     func_matrix = []
     # Loop over default settings
     for name, from_file, _ in CredentialFileParameters:
         if not parameter_pool.has(name):
             func_matrix.append((None, name, from_file))
             
     # Loop over branch environment settings
     branches = parameter_pool.get_value(ParameterName.Branches)
     if branches:
         for branch_name, branch_setting in branches.iteritems():
             if not name in branch_setting:
                 func_matrix.append((branch_name, name, from_file))
                     
     config_file.read_aws_credential_file(location, parameter_pool, 
                                          func_matrix, source, True)