File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def valid_vsts_url?(url)
4949 end
5050
5151 def save_vars ( resource , node )
52- VARS_TO_SAVE . each { |var | node . default [ 'vsts_agent' ] [ 'agents' ] [ resource . agent_name ] [ var ] = resource . send ( var ) if resource . respond_to? ( var . to_sym ) }
52+ VARS_TO_SAVE . each { |var | node . normal [ 'vsts_agent' ] [ 'agents' ] [ resource . agent_name ] [ var ] = resource . send ( var ) if resource . respond_to? ( var . to_sym ) }
5353 node . save
5454 end
5555
@@ -87,7 +87,7 @@ def agent_attribute?(agent_name, node)
8787 end
8888
8989 def remove_current_state ( resource , node )
90- node . default [ 'vsts_agent' ] [ 'agents' ] [ resource . agent_name ] = { }
90+ node . normal [ 'vsts_agent' ] [ 'agents' ] [ resource . agent_name ] = { }
9191 node . save
9292 end
9393
Original file line number Diff line number Diff line change 77source_url 'https://github.com/Microsoft/vsts-agent-cookbook' if respond_to? ( :source_url )
88issues_url 'https://github.com/Microsoft/vsts-agent-cookbook/issues' if respond_to? ( :issues_url )
99chef_version '>= 12.4' if respond_to? ( :chef_version )
10- version '1.3.0 '
10+ version '1.3.1 '
1111
1212%w( ubuntu debian mac_os_x mac_os_x_server windows ) . each do |operating_system |
1313 supports operating_system
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def load_current_resource
7070
7171 execute "Move #{ new_resource . agent_name } agent from intermidiate folder" do
7272 command "cp -r #{ unpack_dir } /#{ archive_name } /* #{ new_resource . install_dir } " unless windows?
73- command "xcopy #{ unpack_dir } \\ #{ archive_name } \\ * #{ win_friendly_path ( new_resource . install_dir ) } /s /e" if windows?
73+ command "xcopy #{ unpack_dir } \\ #{ archive_name } \\ * #{ win_friendly_path ( new_resource . install_dir ) } /s /e /q " if windows?
7474 action :run
7575 end
7676
@@ -90,7 +90,7 @@ def load_current_resource
9090 args [ :windowslogonaccount ] = new_resource . windowslogonaccount
9191 end
9292 if windows? && new_resource . windowslogonpassword
93- args [ :windowslogonaccount ] = new_resource . windowslogonpassword
93+ args [ :windowslogonpassword ] = new_resource . windowslogonpassword
9494 end
9595 end
9696
You can’t perform that action at this time.
0 commit comments