Skip to content

Commit

Permalink
Fixes for install issues on Ubuntu 12.04
Browse files Browse the repository at this point in the history
  • Loading branch information
dwighthubbard committed Aug 2, 2012
1 parent 9f932ab commit f494bfc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 49 deletions.
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -2,7 +2,7 @@
import os import os
from setuptools import setup from setuptools import setup
""" """
Copyright (c) 2010 Yahoo! Inc. All rights reserved. Copyright (c) 2012 Yahoo! Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at You may obtain a copy of the License at
Expand All @@ -18,13 +18,13 @@


setup( setup(
name="sshmap", name="sshmap",
version="0.2.0", version="0.2.10",
author="Dwight Hubbard", author="Dwight Hubbard",
author_email="dhubbard@yahoo-inc.com", author_email="dhubbard@yahoo-inc.com",
url="http://www.yahoo.com", url="http://www.yahoo.com",
license="LICENSE.txt", license="LICENSE.txt",
packages=["sshmap"], packages=["sshmap"],
scripts=["sshmap"], scripts=["sshmap/sshmap.py"],
long_description=open('README.txt').read(), long_description=open('README.txt').read(),
description="A SSH Multiplexer desgined to use ssh to perform map/reduce like operations", description="A SSH Multiplexer desgined to use ssh to perform map/reduce like operations",
requires=['paramiko'], requires=['paramiko'],
Expand Down
3 changes: 3 additions & 0 deletions sshmap/__init__.py
Expand Up @@ -12,3 +12,6 @@
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file. limitations under the License. See accompanying LICENSE file.
""" """
from sshmap import *


3 changes: 3 additions & 0 deletions sshmap/hostlists.py
Expand Up @@ -47,6 +47,9 @@ def _get_plugins():


def expand(range_list): def expand(range_list):
""" Expand a list of plugin:parameters into a list of hosts """ """ Expand a list of plugin:parameters into a list of hosts """
if type(range_list) is str:
range_list=[range_list]

# Find all the host list plugins # Find all the host list plugins
plugins=_get_plugins() plugins=_get_plugins()


Expand Down
31 changes: 0 additions & 31 deletions sshmap/hostlists/.svn/entries

This file was deleted.

13 changes: 0 additions & 13 deletions sshmap/hostlists/plugins/files.py

This file was deleted.

4 changes: 2 additions & 2 deletions sshmap/sshmap.py
Expand Up @@ -2,7 +2,7 @@
""" Python based ssh multiplexer optimized for map operations """ """ Python based ssh multiplexer optimized for map operations """


""" """
Copyright (c) 2010 Yahoo! Inc. All rights reserved. Copyright (c) 2012 Yahoo! Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at You may obtain a copy of the License at
Expand Down Expand Up @@ -417,7 +417,7 @@ def run(range,command,username=None,password=None,sudo=False,script=None,timeout
None None
""" """
status_info(output_callback,' \bLooking up hosts') status_info(output_callback,' \bLooking up hosts')
hosts=hostlists.expandrange(range,compress=False).split(',') hosts=hostlists.expand(range)
if shuffle: if shuffle:
random.shuffle(hosts) random.shuffle(hosts)
status_clear() status_clear()
Expand Down

0 comments on commit f494bfc

Please sign in to comment.