Closed hbuckle closed 6 years ago
Created an executable repro here: https://gist.github.com/marstr/943cded4740104dd3a9747090bc6622c
@hbuckle, thanks for filing this. You definitely found a rough edge we should grind down.
By updating your RepoConfiguration
to be a pointer as so:
RepoConfiguration: &datafactory.FactoryVSTSConfiguration{
What's tripping things up is that the methods AsFactoryVSTSConfiguration
, AsFactoryGitHubConfiguration
, and AsFactoryRepoConfiguration
found here, are dangled off of FactoryVSTSConfiguration
instead of type *FactoryVSTSConfiguration
. This means that our validation checks to see if something non-nil-able is nil, causing this failure.
I'm going to open a generic issue that mentions this problem, and credit you for finding it. But I'll close this issue out since we have a simple work-around.
Bug Report
.../services/datafactory/mgmt/2018-06-01/datafactory
18.0.0
go version
-go1.10.2 windows/amd64
Trying to create a data factory with a repo configuration produces the following error
If I remove the
factory.FactoryProperties.RepoConfiguration
validation from CreateOrUpdate then the factory is created succesfully