From ee3dcb60c3d53948c08b47acac0e8ed04eed8af3 Mon Sep 17 00:00:00 2001 From: Amey Bhide Date: Mon, 23 Mar 2015 13:59:08 -0700 Subject: [PATCH] Update README with CLI commands Closes-Bug: #1433745 Change-Id: Ia2774648da866d1c98b42feb70dd8881509264dc --- README.rst | 14 ++++++++------ congress_noauth | 7 ------- 2 files changed, 8 insertions(+), 13 deletions(-) delete mode 100755 congress_noauth diff --git a/README.rst b/README.rst index 61a3ebe..0432838 100644 --- a/README.rst +++ b/README.rst @@ -25,14 +25,14 @@ To execute CLI commands to standalone congress set with noauth: $ python setup.py install -* Edit congress_noauth and fix CONGRESS_URL to point to correct congress server - -* Run script "congress_noauth" to execute CLI commands:: +* To execute CLI commands:: $ cd python-congressclient For example: - $ ./congress_noauth policy create test_policy + $ export CONGRESS_URL="http://127.0.0.1:1789" + $ openstack --os-token foo --os-url $CONGRESS_URL + (openstack) congress policy create test_policy +--------------+--------------------------------------+ | Field | Value | +--------------+--------------------------------------+ @@ -44,7 +44,7 @@ To execute CLI commands to standalone congress set with noauth: | owner_id | user | +--------------+--------------------------------------+ - $ ./congress_noauth policy rule create test_policy "p(5)" + (openstack) congress policy rule create test_policy "p(5)" +---------+--------------------------------------+ | Field | Value | +---------+--------------------------------------+ @@ -54,11 +54,13 @@ To execute CLI commands to standalone congress set with noauth: | rule | p(5) | +---------+--------------------------------------+ - $ ./congress_noauth policy rule list test_policy + (openstack) congress policy rule list test_policy // ID: 5ce7fb18-a227-447e-bec8-93e99c0052a5 // Name: None p(5) + (openstack) exit + $ Features -------- diff --git a/congress_noauth b/congress_noauth deleted file mode 100755 index 92ccda6..0000000 --- a/congress_noauth +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -CONGRESS_URL="http://127.0.0.1:1789" -COMMAND_PREFIX="openstack --os-token foo --os-url $CONGRESS_URL congress" - -CMD="$COMMAND_PREFIX $@" -exec $CMD