Changeset 1961


Ignore:
Timestamp:
Jun 17, 2016, 2:44:14 PM (3 years ago)
Author:
kbut
Message:

fix bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-mirror/trunk/fuentes/lliurex-mirror-cli/usr/bin/lliurexmirror

    r1960 r1961  
    2626
    2727        def isAlive(self):
    28                 result = self.client.is_alive(self,credentials,"MirrorManager")
     28                result = self.client.is_alive(self.credentials,"MirrorManager")
    2929                print "True" if result['status'] else "False"
    3030                sys.exit( 0 if result['status'] else 1 )
    3131
    3232        def getMirrorArchitecture(self,distro):
    33                 result = self.client.get_mirror_architecture(self,credentials,"MirrorManager",distro)
     33                result = self.client.get_mirror_architecture(self.credentials,"MirrorManager",distro)
    3434                print str(result['msg'])
    3535                sys.exit( 0 if result['status'] else 1 )
    3636
    3737        def setMirrorArchitecture(self,distro,archs):
    38                 result = self.client.set_mirror_architecture(self,credentials,"MirrorManager",distro,archs)
     38                result = self.client.set_mirror_architecture(self.credentials,"MirrorManager",distro,archs)
    3939                print str(result['msg'])
    4040                sys.exit( 0 if result['status'] else 1 )
    4141
    4242        def getMirrorOrig(self,distro):
    43                 result = self.client.get_mirror_orig(self,credentials,"MirrorManager",distro)
     43                result = self.client.get_mirror_orig(self.credentials,"MirrorManager",distro)
    4444                print str(result['msg'])
    4545                sys.exit( 0 if result['status'] else 1 )
    4646
    4747        def setMirrorOrig(self,distro,url):
    48                 result = self.client.set_mirror_orig(self,credentials,"MirrorManager",distro,url)
     48                result = self.client.set_mirror_orig(self.credentials,"MirrorManager",distro,url)
    4949                print str(result['msg'])
    5050                sys.exit( 0 if result['status'] else 1 )
    5151
    5252        def getChecksumValidation(self,distro):
    53                 result = self.client.get_checksum_validation(self,credentials,"MirrorManager",distro)
     53                result = self.client.get_checksum_validation(self.credentials,"MirrorManager",distro)
    5454                print str(result['msg'])
    5555                sys.exit( 0 if result['status'] else 1 )
     
    5757        def setChecksumValidation(self,distro,value):
    5858                check = 0 if not value else 1
    59                 result = self.client.set_checksum_validation(self,credentials,"MirrorManager",distro,check)
     59                result = self.client.set_checksum_validation(self.credentials,"MirrorManager",distro,check)
    6060                print str(result['msg'])
    6161                sys.exit( 0 if result['status'] else 1 )
    6262
    6363        def getPercentage(self):
    64                 result = self.client.get_percentage(self,credentials,"MirrorManager")
     64                result = self.client.get_percentage(self.credentials,"MirrorManager")
    6565                print str(result['msg'])
    6666                sys.exit( 0 if result['status'] else 1 )
    6767
    6868        def enableWebserverForPath(self,path):
    69                 result = self.client.enable_webserver_into_folder(self,credentials,"MirrorManager",path)
     69                result = self.client.enable_webserver_into_folder(self.credentials,"MirrorManager",path)
    7070                print str(result['msg'])
    7171                sys.exit( 0 if result['status'] else 1 )
    7272
    7373        def stopWebserver(self):
    74                 result = self.client.stop_webserver(self,credentials,"MirrorManager")
     74                result = self.client.stop_webserver(self.credentials,"MirrorManager")
    7575                print str(result['msg'])
    7676                sys.exit( 0 if result['status'] else 1 )
    7777
    7878        def getAvailableDistros(self):
    79                 result = self.client.get_available_mirrors(self,credentials,"MirrorManager")
     79                result = self.client.get_available_mirrors(self.credentials,"MirrorManager")
    8080                print str(result['msg'])
    8181                sys.exit( 0 if result['status'] else 1 )
Note: See TracChangeset for help on using the changeset viewer.