Code Monkey home page Code Monkey logo

salt-golang's People

Contributors

jbuchbinder avatar tsaridas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

salt-golang's Issues

eventlistener/event-listener.go not working as expected

On executing,
go run eventlistener/event-listener.go getting error as below:

panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
main.reader(0x7f53414c4ff8, 0xc000010038)
        /home/saltuser/goworkspace/src/salt-golang/eventlistener/event-listener.go:17 +0x340
main.main()
        /home/saltuser/goworkspace/src/salt-golang/eventlistener/event-listener.go:38 +0x136
exit status 2

Added a condition to prevent this issue from occurring:

dec.Decode(&m1)
if len(m1) == 0 {
        continue
}
m1_1 := m1["body"].(string)

Once this condition is added, the error doesn't occur any more. However, the script simply keeps running and nothing is displayed even when a salt event is fired.

listener.go is now missing the Call() function

the salt-cli-v2/salt.go client relies on s.Call() to pass commands to the salt-master. Some time ago listener.go lost the function.

In testing a custom client, returning the function appears to address the problem:

func (srv *Server) Call(tag string, respch chan Response) {
	srv.reqch <- request{tag: tag, respch: respch}
	fmt.Println("Added tag", tag)
}

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.