MCPcopy Create free account
hub / github.com/apache/cloudstack / appendStringIfNotEmpty

Function appendStringIfNotEmpty

systemvm/debian/opt/cloud/bin/configure.py:74–81  ·  view source on GitHub ↗
(s1, s2)

Source from the content-addressed store, hash-verified

72
73
74def appendStringIfNotEmpty(s1, s2):
75 if s2:
76 if not isinstance(s2, str):
77 s2 = str(s2)
78 if s1:
79 return s1 + " " + s2
80 return s2
81 return s1
82
83
84class CsPassword(CsDataBag):

Callers 4

add_routing_rulesMethod · 0.85
__process_routing_ip4Method · 0.85
__process_ip6Method · 0.85
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected