Fix system jobs not starting due to task manager and cred changes

* Task Manager logic wasn't assigning default instance group on system
  jobs
* Task credential changes assumed the model would have a credential
* Fix up an innocuous error symlinking rdb.py if it already exists
This commit is contained in:
Matthew Jones
2017-05-18 13:10:48 -04:00
parent 7c2e5df659
commit cf7fb8ddd7
3 changed files with 8 additions and 2 deletions

View File

@@ -737,8 +737,10 @@ class BaseTask(Task):
# handle custom injectors specified on the CredentialType
if hasattr(instance, 'all_credentials'):
credentials = instance.all_credentials
else:
elif hasattr(instance, 'credential'):
credentials = [instance.credential]
else:
credentials = []
for credential in credentials:
if credential:
credential.credential_type.inject_credential(