Fix CWD plugin loading.
This commit is contained in:
parent
f05b2411e9
commit
eabd8b1cc5
|
@ -1,4 +1,4 @@
|
|||
## 0.2.3 (unreleased)
|
||||
## 0.3.0 (unreleased)
|
||||
|
||||
IMPROVEMENTS:
|
||||
|
||||
|
@ -10,6 +10,7 @@ BUG FIXES:
|
|||
|
||||
* core: Providers are validated even without a `provider` block. [GH-284]
|
||||
* core: In the case of error, walk all non-dependent trees.
|
||||
* core: Plugin loading from CWD works properly.
|
||||
* providers/aws: autoscaling_group can be launched into a vpc [GH-259]
|
||||
|
||||
## 0.2.2 (September 9, 2014)
|
||||
|
|
|
@ -114,6 +114,14 @@ func (c1 *Config) Merge(c2 *Config) *Config {
|
|||
|
||||
func (c *Config) discover(path string) error {
|
||||
var err error
|
||||
|
||||
if !filepath.IsAbs(path) {
|
||||
path, err = filepath.Abs(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
err = c.discoverSingle(
|
||||
filepath.Join(path, "terraform-provider-*"), &c.Providers)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue