sabinio / salt

SQL Agent depLoy Tasks - Takes SQL Server Agent Jobs stored in XML and deploys them to a SQL Server Instance.
MIT License
13 stars 1 forks source link

Unhandled error when proxy does not exist on server but is in xml #26

Open RichieBzzzt opened 6 years ago

RichieBzzzt commented 6 years ago

https://github.com/sabinio/salt/blob/1e1120913a49603c161d25d691783389db359092/salt/functions/SetJobSteps.ps1#L77

If a proxy is defined in the xml but does not exist on the server, then the job step will fail being created without reason as to why.

As credentials and proxies are not currently configured/deployed via salt we need to determine if the proxy exists prior to setting it in the job step.