vagrant-windows-domain 1.1.10 → 1.1.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18e8cedc153f96893183774d0c5b45087a91bb9d
|
4
|
+
data.tar.gz: dc1e99b7ea5b53b19d053af4cfb0af0734de8086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da04a331263848700651009e4a27527d497e27ababaa73f754eca5afd2d6ea102335ab114708f45179a26f2c6d66f5a3429c7f0f09ed946811c7aff893940b35
|
7
|
+
data.tar.gz: 342fe6f9937c666041fef99310c06dd16ed6fa4b591700985758acb80ce4311c71d4319d25f0ca2ed03b86a6e96f2286e872c65c58b229d95c42859aed91d83b
|
@@ -40,7 +40,7 @@ module VagrantPlugins
|
|
40
40
|
# Expected to call the next middleware component in the chain if action should proceed.
|
41
41
|
def call(env)
|
42
42
|
|
43
|
-
if @config and @config.
|
43
|
+
if @config and @config.domain != nil
|
44
44
|
|
45
45
|
if [:not_created].include? @machine.state.id
|
46
46
|
@logger.debug("Machine not created, nothing to do")
|
@@ -103,7 +103,7 @@ module VagrantPlugins
|
|
103
103
|
# for any state related to the machine created by the provisioner
|
104
104
|
# to be cleaned up.
|
105
105
|
def destroy
|
106
|
-
if @config && @config.
|
106
|
+
if @config && @config.domain != nil
|
107
107
|
set_credentials
|
108
108
|
if leave_domain
|
109
109
|
restart_guest
|
@@ -195,7 +195,7 @@ describe VagrantPlugins::WindowsDomain::Provisioner do
|
|
195
195
|
it "should not leave domain plugin not associated with current Vagrantfile" do
|
196
196
|
allow(machine).to receive(:communicate).and_return(communicator)
|
197
197
|
|
198
|
-
subject = described_class.new machine,
|
198
|
+
subject = described_class.new machine, double("env", :domain => nil)
|
199
199
|
|
200
200
|
expect(ui).to_not receive(:ask)
|
201
201
|
expect(subject.destroy).to eq(nil)
|