+ # XXX: We should be able to accept a credential_name without
+ # a cloud_name, and just get the cloud_name from the controller.
+ if credential_name and cloud_name:
+ credential = tag.credential(
+ cloud_name,
+ tag.untag('user-', owner),
+ credential_name
+ )
+ else:
+ credential = None
+
+