Giter VIP home page Giter VIP logo

os-cli's Introduction

Welcome to Sergei's profile!

My name is Sergei. I am a software engineer specializing in designing, developing, and maintaining cloud applications.

As for today, I am in constant search of experience working with new diverse technologies, languages, workflows, and projects to gain fundamental knowledge for designing more complex, more secure, and more groundbreaking software infrastructure systems.

๐Ÿ›  Production technologies and tools

๐Ÿ‘จโ€๐Ÿ’ป Programming languages

go badge python badge php badge javascript badge

๐Ÿ“Š GitHub Stats

stats widget language widget

๐Ÿ†” Digital identity

linked-in badge

os-cli's People

Contributors

serboox avatar

Watchers

 avatar  avatar

os-cli's Issues

Empty token error

Hello.

For some reason I'm getting the following error when I try to run the create command:

root@devstack:~# os-cli create --instName test --imageRef bb129fe1-ec15-4803-8565-f10d66c2d45a --flavorRef 1 --login demo --pass secret --auth-host http://10.10.0.101/identity
Token not be empty

All provided data is valid and I can get it via the standard openstack cli.

Panic errors from empty arguments

Hello.

I've tried to use this project for a while.

For some reason I'm getting runtime errors when I try to run the cli commands without any arguments.

Show command:

root@6790fe0e751d:/go/src/github.com/serboox/os-cli# ./os-cli show
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x66199b]

goroutine 1 [running]:
github.com/serboox/os-cli/models.(*ResAuthTokens).Post(0xc42007ce60, 0x958820, 0xc4200516d8, 0x6c05e6, 0xc42008661c)
	/go/src/github.com/serboox/os-cli/models/tokens.go:143 +0x49b
github.com/serboox/os-cli/controllers.ShowInstances(0x958820, 0xc420051740, 0x6c3b61)
	/go/src/github.com/serboox/os-cli/controllers/show.go:16 +0x51
github.com/serboox/os-cli/cmd.ShowInstances.func1(0xc4200d0dc0, 0x0, 0xc4200d0dc0)
	/go/src/github.com/serboox/os-cli/cmd/show.go:20 +0x2a
github.com/serboox/os-cli/vendor/github.com/urfave/cli.HandleAction(0x70cf20, 0xc42007acf0, 0xc4200d0dc0, 0xc420116300, 0x0)
	/go/src/github.com/serboox/os-cli/vendor/github.com/urfave/cli/app.go:490 +0xc8
github.com/serboox/os-cli/vendor/github.com/urfave/cli.Command.Run(0x77d064, 0x4, 0x0, 0x0, 0xc42007ad00, 0x1, 0x1, 0x77f7e6, 0xe, 0x0, ...)
	/go/src/github.com/serboox/os-cli/vendor/github.com/urfave/cli/command.go:210 +0xa36
github.com/serboox/os-cli/vendor/github.com/urfave/cli.(*App).Run(0xc4200a29c0, 0xc42008e000, 0x2, 0x2, 0x0, 0x0)
	/go/src/github.com/serboox/os-cli/vendor/github.com/urfave/cli/app.go:255 +0x6a0
main.main()
	/go/src/github.com/serboox/os-cli/os-cli.go:29 +0x282

Create command:

root@6790fe0e751d:/go/src/github.com/serboox/os-cli# ./os-cli create
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x66199b]

goroutine 1 [running]:
github.com/serboox/os-cli/models.(*ResAuthTokens).Post(0xc42007cd20, 0x958820, 0xc420051710, 0xc4200810a8, 0xc420081040)
	/go/src/github.com/serboox/os-cli/models/tokens.go:143 +0x49b
github.com/serboox/os-cli/controllers.CreateInstance(0x958820, 0xc420051740, 0x6c3b61)
	/go/src/github.com/serboox/os-cli/controllers/create.go:17 +0x62
github.com/serboox/os-cli/cmd.CreateInstance.func1(0xc4200d0b00, 0x0, 0xc4200d0b00)
	/go/src/github.com/serboox/os-cli/cmd/create.go:20 +0x2a
github.com/serboox/os-cli/vendor/github.com/urfave/cli.HandleAction(0x70cf20, 0xc42007acd0, 0xc4200d0b00, 0xc420116300, 0x0)
	/go/src/github.com/serboox/os-cli/vendor/github.com/urfave/cli/app.go:490 +0xc8
github.com/serboox/os-cli/vendor/github.com/urfave/cli.Command.Run(0x77d582, 0x6, 0x0, 0x0, 0xc42007ace0, 0x1, 0x1, 0x77fb5c, 0xf, 0x0, ...)
	/go/src/github.com/serboox/os-cli/vendor/github.com/urfave/cli/command.go:210 +0xa36
github.com/serboox/os-cli/vendor/github.com/urfave/cli.(*App).Run(0xc4200a29c0, 0xc42008e000, 0x2, 0x2, 0x0, 0x0)
	/go/src/github.com/serboox/os-cli/vendor/github.com/urfave/cli/app.go:255 +0x6a0
main.main()
	/go/src/github.com/serboox/os-cli/os-cli.go:29 +0x282

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.