Skip to content

Instantly share code, notes, and snippets.

@itsmemattchung
Created June 30, 2014 19:45
Show Gist options
  • Save itsmemattchung/7128f585a6bf5072c8d9 to your computer and use it in GitHub Desktop.
Save itsmemattchung/7128f585a6bf5072c8d9 to your computer and use it in GitHub Desktop.
import pdb
pdb.set_trace()
flav = flavor or srv_args.get("flavorRef")
dconf = disk_config if disk_config is not None else srv_args.get("OS-DCF:diskConfig", "AUTO")
pers = personality if personality is not None else srv_args.get("personality", [])
body = {"type": "launch_server",
"args": {
"server": {
"name": server_name or srv_args.get("name"),
"imageRef": image or srv_args.get("imageRef"),
"flavorRef": flav,
"OS-DCF:diskConfig": dconf,
@zen4ever
Copy link

pers = personality if personality is not None \
else srv_args.get("personality", [])

or

pers = (
    personality if personality is not None
    else srv_args.get("personality", [])
)

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