mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-22 20:44:43 +00:00
Added comments and cleanup var
This commit is contained in:
parent
5a5fa7a0ad
commit
661d016253
@ -40,9 +40,10 @@ func (p SwarmProvider) Name() string {
|
|||||||
func (p SwarmProvider) Scale(serviceId string, target int, direction bool) error {
|
func (p SwarmProvider) Scale(serviceId string, target int, direction bool) error {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
// Correct bug #41 using docker/docker v17.06.1-ce-rc4
|
// Correct bug #41 using docker/docker v17.06.1-ce-rc4
|
||||||
siopts := types.ServiceInspectOptions{}
|
// Service inspect returns a service showing default values in empty fields
|
||||||
siopts.InsertDefaults = true
|
service, _, err := p.dockerClient.ServiceInspectWithRaw(ctx, serviceId, types.ServiceInspectOptions{
|
||||||
service, _, err := p.dockerClient.ServiceInspectWithRaw(ctx, serviceId, siopts)
|
InsertDefaults: true,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"error": err.Error(),
|
"error": err.Error(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user