question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect notification about missing required property

See original GitHub issue

When defining the docker provider in a .tf file without any other arguments, the plugin marks the code block as incorrect because it thinks the only required attribute, host, is missing. Even though that is true (no host argument defined in the block), according to the documentation, when the host argument “is blank, the DOCKER_HOST environment variable will also be read”. If this is present, then the plugin should not mark that code block as invalid.

Please see below: screen shot 2016-11-20 at 14 21 27

At the same time:

> env | grep -i DOCKER
DOCKER_CERT_PATH=/path/to/docker/vm
DOCKER_HOST=tcp://the.ip.with:port-defined
DOCKER_MACHINE_NAME=docker-vm-name
DOCKER_TLS_VERIFY=1

I think the plugin should be aware of the environment variables (the DOCKER_* are usually set globally within a system so it should be able to detect/see them) and if the DOCKER_HOST is present, it should not mark that block as invalid.

I am happy to contribute and send a PR for this, but I don’t see any contributing guideline so I wouldn’t be sure how to proceed.

Thanks and thank you for the plugin!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Ninircommented, Nov 29, 2016

@VladRassokhin Following walter’s comment, do you think a release for the work that has been done since October could see the light? thanks! 😃

0reactions
walterdolcecommented, Jan 6, 2017

Sorry for the delay. I just tried it and it works. Well done and thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "To save to server, correct the invalid missing required ...
The problem is like "To save to server, correct the invalid missing required properties" once open any office document with office application ...
Read more >
Missing required property 'type' #401 - Azure/azure-signalr
Error when processing requests. System.IO.InvalidDataException: Missing required property 'type'. at HubMessage Microsoft.AspNetCore.
Read more >
Azure Pipeline deploy to Web App Service failing with Missing ...
Missing required property 'OutputPath' for project type 'PackageReference'. As far as I understood, the PackageReference just works with MSBuild ...
Read more >
HTTP status and error codes for JSON | Cloud Storage
Example values include Invalid argument , Login required , and Required ... A required URL parameter or required request body JSON property is...
Read more >
Error Messages | Maps JavaScript API - Google Developers
The script element that loads the API is missing the required authentication parameter. If you are using the standard Maps JavaScript API, then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found