-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #382 from 030/381-405-not-allowed
fix: [#381] 405 not allowed when creating repositories as 'https' cou…
- Loading branch information
Showing
28 changed files
with
339 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/030/n3dr/internal/app/n3dr/config/user" | ||
"github.com/030/n3dr/internal/app/n3dr/connection" | ||
"github.com/030/n3dr/internal/app/n3dr/goswagger/models" | ||
|
@@ -26,8 +24,6 @@ Examples: | |
n3dr configUser --changePass --https false --n3drUser admin --n3drURL nexus3:8081 --n3drPass initial-pass --pass some-pass --email [email protected] --firstName admin --id admin --lastName admin | ||
`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Println("configUser called") | ||
|
||
if !admin && !downloadUser && !uploadUser && !changePass { | ||
log.Fatal("either the admin, changePass, downloadUser or uploadUser is required") | ||
} | ||
|
@@ -39,7 +35,12 @@ Examples: | |
Password: pass, | ||
UserID: id, | ||
} | ||
n := connection.Nexus3{FQDN: n3drURL, Pass: n3drPass, User: n3drUser} | ||
n := connection.Nexus3{ | ||
FQDN: n3drURL, | ||
HTTPS: &https, | ||
Pass: n3drPass, | ||
User: n3drUser, | ||
} | ||
u := user.User{APICreateUser: acu, Nexus3: n} | ||
|
||
if admin { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.