New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add_mime_maps is throwing compile error #238

Closed
echandradhas opened this Issue Jan 9, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@echandradhas

echandradhas commented Jan 9, 2016

This resource block to add a new mime type is failing with some compile error.

iis_root 'Test_Mime' do
  add_default_documents ['foo.html']
  add_mime_maps ["fileExtension='.tin',mimeType='application/octet-stream'"]
  action :add
end

Here is the error.

          Error executing action `add` on resource 'iis_root[Test_Mime]'
          ================================================================================

          NameError
          ---------
          No resource, method, or local variable named `was_updated' for `Chef::Provider::IisRoot ""'

          Resource Declaration:
          ---------------------
          # In C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/hostfiletest/recipes/iispooltest.rb

           54: iis_root 'Test_Mime' do
           55:   add_default_documents ['foo.html']
           56:   add_mime_maps ["fileExtension='.tin',mimeType='application/octet-stream'"]
           57:   action :add
           58: end

          Compiled Resource:
          ------------------
          # Declared in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/hostfiletest/recipes/iispooltest.rb:54:in `from_file'

          iis_root("Test_Mime") do
            action [:add]
            retries 0
            retry_delay 2
            default_guard_interpreter :default
            declared_type :iis_root
            cookbook_name "hostfiletest"
            recipe_name "iispooltest"
            add_default_documents ["foo.html"]
            add_mime_maps ["fileExtension='.tin',mimeType='application/octet-stream'"]
            default_documents ["Default.htm", "Default.asp", "index.htm", "index.html", "iisstart.htm", "default.aspx"]
            default_documents_enabled true
      mimeType='application/octet-stream'", "fileExtension='.der',mimeType='application/x-x509-ca-cert'", "fileExtension='.dib',mimeType='image/bmp'", "fi
eExtension='.dir',mimeType='application/x-director'", "fileExtension='.disco',mimeType='text/xml'", "fileExtension='.dll',mimeType='application/x-msdownlo
d'", "fileExtension='.dll.config',mimeType='text/xml'", "fileExtension='.dlm',mimeType='text/dlm'", "fileExtension='.doc',mimeType='application/msword'",
fileExtension='.docm',mimeType='application/vnd.ms-word.document.macroEnabled.12'", "fileExtension='.docx',mimeType='application/vnd.openxmlformats-office
@EasyAsABC123

This comment has been minimized.

Show comment
Hide comment
@EasyAsABC123

EasyAsABC123 Jan 15, 2016

Collaborator

Resolved by 11b30da

Collaborator

EasyAsABC123 commented Jan 15, 2016

Resolved by 11b30da

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment