Merge branch 'master' into cgenie/graph-db
This commit is contained in:
commit
2dff6e1720
@ -72,7 +72,7 @@ def setup_riak():
|
||||
local_errors = validation.validate_resource(r)
|
||||
if local_errors:
|
||||
has_errors = True
|
||||
print 'ERROR: %s: %s' % (r.name, errors)
|
||||
print 'ERROR: %s: %s' % (r.name, local_errors)
|
||||
|
||||
if has_errors:
|
||||
print "ERRORS"
|
||||
|
@ -182,14 +182,6 @@ def init_cli_connections():
|
||||
#plt.savefig('graph.png')
|
||||
|
||||
|
||||
def init_cli_deployment_config():
|
||||
@main.command()
|
||||
@click.argument('filepath')
|
||||
def deploy(filepath):
|
||||
click.echo('Deploying from file {}'.format(filepath))
|
||||
xd.deploy(filepath)
|
||||
|
||||
|
||||
def init_cli_resource():
|
||||
@main.group()
|
||||
def resource():
|
||||
@ -296,7 +288,6 @@ def init_cli_resource():
|
||||
if output:
|
||||
echo(output)
|
||||
|
||||
|
||||
@resource.command()
|
||||
@click.argument('resource_name')
|
||||
@click.argument('tag_name')
|
||||
@ -308,7 +299,7 @@ def init_cli_resource():
|
||||
r.add_tag(tag_name)
|
||||
else:
|
||||
r.remove_tag(tag_name)
|
||||
r.save()
|
||||
# TODO: the above functions should save resource automatically to the DB
|
||||
|
||||
@resource.command()
|
||||
@click.argument('name')
|
||||
|
@ -12,6 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
class SolarError(Exception):
|
||||
pass
|
||||
|
||||
@ -24,5 +25,9 @@ class CannotFindExtension(SolarError):
|
||||
pass
|
||||
|
||||
|
||||
class LexError(SolarError):
|
||||
pass
|
||||
|
||||
|
||||
class ParseError(SolarError):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user