Commit 18e7b0f6 authored by Łukasz Nowak's avatar Łukasz Nowak

Use "get('foo') or default", as kwargs can have stored 'nothings'.

parent 246e6833
master alain amarisoft cache cleanup cliff-cleanup cygwin-link-local delete_instance feat/cli_request_file feat/only-complete feat/software-check-shebang feature/cgroups feature/format-crumbled feature/manager-cpuset feature/option_create_tun feature/tun-cgroup-cleanup fix/fd-leak fix/logrotate-snapshot fix/mock-leak-break-tests fix/print-and-hashseed fix/promise-output-text fix/python3.6 fix/repair_navigator_test format_loop garbage-collect grid-environment hosting_daily_invoice hostingwebsite hotfix/proxy-root-instance lazy_simulation_causality lxc master-dev monitoring payzen-fixup proxy-sqlalchemy rafael registry-hotfix revert-889711ed seb slapgrid_client_test slaphateoas slapjs slapos-override-env slapos.cache.source slaposjs slapproxy-connection-parameter urlJS wip/cli_request_file_merge wip/initialize_connection_raise_errors wip/rc wip/release1.5.0 wip/slapproxy_loadComputerConfigurationFromXML wip/testcase wip/typing 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.18 1.3.17 1.3.16 1.3.15 1.3.14 1.3.13 1.3.12 1.3.11 1.3.10 1.3.9 1.3.8 1.3.7 1.3.6.3 1.3.6.2 1.3.6.1 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4.1 1.2.4 1.2.3.1 1.2.3 1.2.2 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 1.0.0rc6 1.0.0rc5 1.0.0rc4 1.0.0rc3 1.0.0-rc1 0.35.1 0.34 0.33.1 0.33 0.32.3 0.32.2 0.32 0.31.2 0.31.1 0.31 0.30 0.29 0.28.9 0.28.8 0.28.7 0.28.6 0.28.5 0.28.4 0.28.3 0.28.2 0.28.1 0.28 0.27 0.26.2 0.26.1 0.26 0.25 0.24 0.23 0.22 0.21 0.20 0.19 0.18 0.17 0.16 0.15 0.14 0.13 0.12 0.11 0.10 0.9 0.8 0.7 0.6 0.5 0.4 vifib-0.4 vifib-0.3 vifib-0.2 vifib-0.1 jquerymobile.noanimation
No related merge requests found
......@@ -59,9 +59,9 @@ portal = person.getPortalObject()\n
kwargs = state_change.kwargs\n
software_release_url_string = state_change.kwargs[\'software_release\']\n
software_title = kwargs["software_title"]\n
software_type = kwargs.get("software_type", "RootSoftwareInstance")\n
software_type = kwargs.get("software_type") or "RootSoftwareInstance"\n
instance_xml = kwargs["instance_xml"]\n
sla_xml = kwargs.get("sla_xml", "")\n
sla_xml = kwargs.get("sla_xml") or ""\n
\n
sale_order_portal_type = "Sale Order"\n
sale_order_line_portal_type = "Sale Order Line"\n
......
377
\ No newline at end of file
378
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment