Merge pull request #9664 from backstage/rugvip/nopt

catalog-import: stop trying to register optional locations
This commit is contained in:
Patrik Oldsberg
2022-03-15 11:04:56 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-import': patch
---
No longer attempt to register locations as optional, since it's ignored.
@@ -73,8 +73,6 @@ export const StepReviewLocation = ({
const result = await catalogApi.addLocation({
type: 'url',
target: l.target,
presence:
prepareResult.type === 'repository' ? 'optional' : 'required',
});
return {
target: result.location.target,