Skip to content

Commit

Permalink
fix remote create
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Oct 30, 2024
1 parent 195ec14 commit 9c871ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/remote-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ export class RemoteForm extends Component<IProps, IState> {

switch (remoteType) {
case 'ansible':
case 'file':
// require only name, url; nothing disabled
// nothing disabled
break;

case 'container':
case 'file':
disabledFields = disabledFields.concat([
'auth_url',
'token',
Expand Down
1 change: 1 addition & 0 deletions src/containers/file-remote/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const FileRemoteEdit = Page<FileRemoteType>({
}

delete data.my_permissions;
delete data.signed_only;

// api requires traling slash, fix the trivial case
if (data.url && !data.url.includes('?') && !data.url.endsWith('/')) {
Expand Down

0 comments on commit 9c871ba

Please sign in to comment.