commit 0c23c62cef6f1388d26c04d6cf0e74153db0a0b5
Author: ZhiQiang Fan <email address hidden>
Date: Thu Nov 27 04:35:12 2014 +0800
Enable specified project_id in CLI commands
After we port to oslo-incubator.apiclient, the project_id can no
longer be specified for alarm-{,threhsold,combination}-{create,update}
and sample-create, this is because client.AuthPlugin registers a CLI
argument named --os-project-id which will shadow the project-id
argument.
Since os-project-id is used for Keystone V3 API, we should not
remove it from AuthPlugin, so this patch moves the dest of project_id
to {alarm,sample}_project_id, and adds a decorator to restore shadowed
project_id field when we call v2 client.
Reviewed: https:/ /review. openstack. org/139659 /git.openstack. org/cgit/ openstack/ python- ceilometerclien t/commit/ ?id=0c23c62cef6 f1388d26c04d6cf 0e74153db0a0b5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 0c23c62cef6f138 8d26c04d6cf0e74 153db0a0b5
Author: ZhiQiang Fan <email address hidden>
Date: Thu Nov 27 04:35:12 2014 +0800
Enable specified project_id in CLI commands
After we port to oslo-incubator. apiclient, the project_id can no ,threhsold, combination} -{create, update}
longer be specified for alarm-{
and sample-create, this is because client.AuthPlugin registers a CLI
argument named --os-project-id which will shadow the project-id
argument.
Since os-project-id is used for Keystone V3 API, we should not sample} _project_ id, and adds a decorator to restore shadowed
remove it from AuthPlugin, so this patch moves the dest of project_id
to {alarm,
project_id field when we call v2 client.
Change-Id: I0ce2416dccd61e b50584799e6df0b 8c45d44cdda
Closes-Bug: #1393489