1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Have to setup the proper mime-types before importing SImpleHttpServer

This commit is contained in:
Toshio Kuratomi 2015-05-21 12:24:41 -07:00
parent 7af2632c87
commit a8d52e3e94
2 changed files with 2 additions and 4 deletions

View file

@ -42,9 +42,6 @@ unicode:
test_templating_settings: test_templating_settings:
ansible-playbook test_templating_settings.yml -i $(INVENTORY) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS) ansible-playbook test_templating_settings.yml -i $(INVENTORY) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS)
mine:
ansible-playbook mine.yml -i $(INVENTORY) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS)
non_destructive: non_destructive:
ansible-playbook non_destructive.yml -i $(INVENTORY) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS) ansible-playbook non_destructive.yml -i $(INVENTORY) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS)

View file

@ -1,6 +1,7 @@
import mimetypes import mimetypes
import SimpleHTTPServer
if __name__ == '__main__': if __name__ == '__main__':
mimetypes.init()
mimetypes.add_type('application/json', '.json') mimetypes.add_type('application/json', '.json')
import SimpleHTTPServer
SimpleHTTPServer.test() SimpleHTTPServer.test()