Ignore:
Timestamp:
Feb 24, 2017, 2:01:40 PM (4 years ago)
Author:
jrpelegrina
Message:

Fix code to new features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-up/trunk/fuentes/lliurex-up-cli/usr/sbin/lliurex-upgrade

    r3693 r3703  
    5959                is_mirror_running_inserver=self.lliurexcore.clientCheckingMirrorIsRunning()
    6060               
    61                 if is_mirror_running_inserver['exception'] !=False:
    62                         log_msg="Error checking if mirror in server is being updated. Error: " + str(is_mirror_running_inserver['exception'])
     61                if is_mirror_running_inserver['ismirrorrunning'] ==None:
     62                        log_msg="Checking if mirror in server is being updated. Error: " + str(is_mirror_running_inserver['exception'])
    6363                        self.log(log_msg)
    6464                else:
     
    369369                        return 1
    370370                       
    371                 if self.clientCheckingMirrorIsRunning():
    372                         print("  [Lliurex-up]: Mirror is being udpated in server. Unable to update the system")
     371                clientCheckingMirror=self.clientCheckingMirrorIsRunning()
     372                if clientCheckingMirror!=False:
     373                        if clientCheckingMirror:
     374                                print("  [Lliurex-up]: Mirror is being udpated in server. Unable to update the system")
     375                        else:
     376                                print("  [Lliurex-up]: Unable to connect with server")
     377
    373378                        self.lliurexcore.cleanEnvironment()
    374379                        self.lliurexcore.cleanLliurexUpLock()
Note: See TracChangeset for help on using the changeset viewer.