{"action":"created","issue":{"url":"https://api.github.com/repos/mefellows/vagrant-dsc/issues/18","repository_url":"https://api.github.com/repos/mefellows/vagrant-dsc","labels_url":"https://api.github.com/repos/mefellows/vagrant-dsc/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/mefellows/vagrant-dsc/issues/18/comments","events_url":"https://api.github.com/repos/mefellows/vagrant-dsc/issues/18/events","html_url":"https://github.com/mefellows/vagrant-dsc/issues/18","id":113584797,"number":18,"title":"Passing Nil To configuration_file","user":{"login":"AshleyPoole","id":3891630,"avatar_url":"https://avatars.githubusercontent.com/u/3891630?v=3","gravatar_id":"","url":"https://api.github.com/users/AshleyPoole","html_url":"https://github.com/AshleyPoole","followers_url":"https://api.github.com/users/AshleyPoole/followers","following_url":"https://api.github.com/users/AshleyPoole/following{/other_user}","gists_url":"https://api.github.com/users/AshleyPoole/gists{/gist_id}","starred_url":"https://api.github.com/users/AshleyPoole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AshleyPoole/subscriptions","organizations_url":"https://api.github.com/users/AshleyPoole/orgs","repos_url":"https://api.github.com/users/AshleyPoole/repos","events_url":"https://api.github.com/users/AshleyPoole/events{/privacy}","received_events_url":"https://api.github.com/users/AshleyPoole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-10-27T13:35:24Z","updated_at":"2016-08-24T16:53:30Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to set the configuration_file variable in the Vagrant file to nil but I cannot seem to get it to work. Could you provide an example as I'm trying to use precompiled mof files but cannot.\r\n\r\nOne possibility is it might be a bug? Within config.rb, line 97 sets the default value to \"Default.ps1\" if a value isn't given, yet on line 117 the variaibile is tested to see if it's null as to allow the the mof path instead. I believe this is why the message \"cannot provide configuration_file and mof_path at the same time. Please provide only one of the two\" is being printed out.\r\n\r\nhttps://github.com/mefellows/vagrant-dsc/blob/master/lib/vagrant-dsc/config.rb#L97"},"comment":{"url":"https://api.github.com/repos/mefellows/vagrant-dsc/issues/comments/242134632","html_url":"https://github.com/mefellows/vagrant-dsc/issues/18#issuecomment-242134632","issue_url":"https://api.github.com/repos/mefellows/vagrant-dsc/issues/18","id":242134632,"user":{"login":"dragon788","id":487774,"avatar_url":"https://avatars.githubusercontent.com/u/487774?v=3","gravatar_id":"","url":"https://api.github.com/users/dragon788","html_url":"https://github.com/dragon788","followers_url":"https://api.github.com/users/dragon788/followers","following_url":"https://api.github.com/users/dragon788/following{/other_user}","gists_url":"https://api.github.com/users/dragon788/gists{/gist_id}","starred_url":"https://api.github.com/users/dragon788/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragon788/subscriptions","organizations_url":"https://api.github.com/users/dragon788/orgs","repos_url":"https://api.github.com/users/dragon788/repos","events_url":"https://api.github.com/users/dragon788/events{/privacy}","received_events_url":"https://api.github.com/users/dragon788/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T16:53:30Z","updated_at":"2016-08-24T16:53:30Z","body":"Just ran into this myself. I wanted to test a MOF and see if it would apply cleanly but even with all the configuration file options commented it throws the warning.\r\n\r\nI tried moving the check for both the @config and @mof being defined to BEFORE the @config gets assigned the default.ps1 value (making it never nil before the nil check), but I think there may be a cached copy somewhere (I was hacking directly in ~/.vagrant.d/gems/gems/vagrant-dsc/lib), or as @mefellows mentioned perhaps there is somewhere else that it needs changed as well.\r\n\r\nI might see if I can setup a dev environment to run some tests around this, currently I am just trying to get DSCLocalConfigurationManager settings in place, and since doesn't support taking a config file, I am attempting to fake it by creating an empty psd1, the way the DSCLocalConfiguration works isn't quite the same as a standard module though so I'm not sure how well it will work out."}}
{"actor":{"display_login":"dragon788"}}