Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
start, stop, and status now work in Ubuntu 16.04
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Jun 16, 2016
1 parent 6b5869a commit f66a4f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gdistcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def create_instance(project, zone, name, distro, number):
credentials = GoogleCredentials.get_application_default()
compute = discovery.build('compute', 'v1', credentials=credentials)

# convert to dictionary later
if "centos" in distro:
compproj = 'centos-cloud'
elif "ubuntu" in distro:
Expand Down Expand Up @@ -235,7 +236,7 @@ def main(project, zone, prefix, qty, mode, skipfullstartup):
if mode == 'start':
# Verify no current instances
instances = list_instances(project, zone)
if len(instances) > 0:
if instances != False:
print('ERROR: %s gdistcc instance(s) detected, run \'gdistcc status\' for details' % len(instances))
exit(-1)
name = prefix + '-' + distro + '-' + format(str(uuid.getnode())[:8:-1])
Expand Down

0 comments on commit f66a4f0

Please sign in to comment.