Make cloudcfg method switch idiomatic.

@jbeda

I just signed the individual contributor CLA electronically.